Changes

Updateable Web Page View Fields

85 bytes added, 13:32, 22 November 2011
Breakdown of the syntax
== Overview ==
This code can be used in the field type of 'Web page view' to allow for user to enter data into the form which will be <br>updated on their records on the system. Currently this function is only available for the custom fields and not the standard<br>fields. Following The following sample code is the format in which this web page view should be in order to be accessible by the user.
== Sample Code ==
<body><br>
[@formstart@]<br>
[@formsubmitpage=page_wil_be_redirected_after_savepage_will_be_redirected_after_save@]<br>
<p><br>
<input type=text name='obj.fd_name' value="@name@"><br>
'''[@formstart@]''' : Mandatory, indicates start of a updatable form, only one form can be exist on a web page field<br> '''[@formsubmitpage=page_wil_be_redirected_after_savepage_will_be_redirected_after_save@]''' : Optional, what page will be redirected after save, stays on thesame age page if this tag is missing. Typically, a confirmation page on smartfolder SmartFolder will be used.<br>
'''[@formend@]''' : Mandatory, indicates end of a updatable form.<br>
'''<input type=text name='obj.fd_name' value="@name@">''' or
'''<input type=text name='obj.cf_18168' value="@#18168#@">'''
The '''@name@''' and '''@#18168#@''' are just typical web page view variable syntax, this will prepopulate the existing values into the field. The '''obj.fd_name''' and '''obj.cf_18168''' instructs which field to store the value in. Standard fileds starts fields start with '''obj.fd_''' while custom fileds starts fields start with '''obj.cf_'''. For the custom fields use the field id number to address the field.
==Displaying Checkbox field==
==See Also==
* [[Changing the Status from a Web Page View]]* [[Custom Field Type: Display Only – Web Page View]]* [[Web Page View Field Variables]]
[[Category:System Management]][[Category:Custom Fields]][[Category:JavaScript Examples]]
8,849
edits