Difference between revisions of "Updateable Web Page View Fields"

From SmartWiki
Jump to: navigation, search
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Overview ==
+
{{ DeprecatedPage }}
  
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 sample code is the format in which this web page view should be in order to be accessible by the user.
 
  
== Sample Code ==
+
==Overview==
 +
 +
This functionality is no longer supported
 +
 
 +
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
 +
updated on their records on the system. Currently this function is only available for the custom fields and not the standard
 +
fields. 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==
 +
¶<br />[@formstart@]<br />
 +
[@formsubmitpage=page_will_be_redirected_after_save@]
 +
 
 +
 
 +
<br />
 +
<input name="obj.fd_name" type="text" value="@name@" />
 +
 
 +
 
 +
<br />
 +
<input name="obj.cf_18168" type="text" value="@#18168#@" /><br />
 +
<input type="submit" value="Save" /><br />
 +
[@formend@]<br />
 +
 
 +
 
 +
 
 +
  
  
<html><br>
 
<body><br>
 
[@formstart@]<br>
 
[@formsubmitpage=page_wil_be_redirected_after_save@]<br>
 
<p><br>
 
<input type=text name='obj.fd_name' value="@name@"><br>
 
<p><br>
 
<input type=text name='obj.cf_18168' value="@#18168#@"><br>
 
<input type=submit value="Save"><br>
 
[@formend@]<br>
 
<br>
 
</body><br>
 
</html><br>
 
  
== Breakdown of the syntax ==
+
==Breakdown of the syntax==
+
'''[@formstart@]''' : Mandatory, indicates start of a updatable form, only one form can exist on a web page field<br />
 +
'''[@formsubmitpage=page_will_be_redirected_after_save@]''' : Optional, what page will be redirected after save, stays on the
 +
same page if this tag is missing. Typically, a confirmation page on SmartFolder will be used.<br />
 +
'''[@formend@]''' : Mandatory, indicates end of a updatable form.<br />
 +
'''<input name="obj.fd_name" type="text" value="@name@" />''' or
 +
'''<input name="obj.cf_18168" type="text" value="@#18168#@" />'''
  
'''[@formstart@]''' : Mandatory, indicates start of a updatable form, only one form can be exist on a web page field<br>
+
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 fields start with '''obj.fd_''' while custom fields start with '''obj.cf_'''. For the custom fields use the field id number to address the field.
'''[@formsubmitpage=page_wil_be_redirected_after_save@]''' : Optional, what page will be redirected after save, stays on the
 
same age if this tag is missing. Typically, a confirmation page on 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 with '''obj.fd_''' while custom fileds starts with '''obj.cf_'''. For the custom fields use the field id number to address the field.
 
  
 
==Displaying Checkbox field==
 
==Displaying Checkbox field==
 +
To display a Checkbox inside an updateable webpage view field use the following syntax:
 +
 +
<input name="obj.cf_fieldid" type="hidden" value="" />
 +
<input name="obj.cf_fieldid" type="checkbox" value="" />
 +
 +
* You must include a hidden object with the same name as the check box object, directly prior to the checkbox object.
 +
 +
Example:
 +
 +
 +
<input name="obj.cf_12345" type="hidden" value="" />
 +
 +
    <input name="obj.cf_12345" type="checkbox" value="Financial" />Financial
 +
 +
'''
 +
  
To display a Checkbox inside an updateable webpage view field use the following syntax:
 
  
  '''<input type="checkbox" name='obj.cf_fieldid' value="value of field" @checkbox('fieldid','value of field')@>'''
+
==See Also==
 +
* [[Changing the Status from a Web Page View]]
 +
* [[Custom Field Type: Display Only – Web Page View]]
 +
* [[Web Page View Field Variables]]
  
  Example: '''<tr><td><input type="checkbox" name='obj.cf_1139865' value="Financial" @checkbox('1139865','Financial')@>Financial</td></tr>'''
 
  
[[Category:System Management]][[Category:Custom Fields]][[Category:Browser Scripts]]
+
[[Category:System Management]][[Category:Custom Fields]][[Category:JavaScript]]

Latest revision as of 10:29, 7 January 2026


Ambox warning pn.png This article is deprecated and the information contained within may no longer be correct.


Overview

This functionality is no longer supported

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

updated on their records on the system. Currently this function is only available for the custom fields and not the standard
fields. 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


[@formstart@]
[@formsubmitpage=page_will_be_redirected_after_save@]



<input name="obj.fd_name" type="text" value="@name@" />



<input name="obj.cf_18168" type="text" value="@#18168#@" />
<input type="submit" value="Save" />
[@formend@]



Breakdown of the syntax

[@formstart@] : Mandatory, indicates start of a updatable form, only one form can exist on a web page field
[@formsubmitpage=page_will_be_redirected_after_save@] : Optional, what page will be redirected after save, stays on the same page if this tag is missing. Typically, a confirmation page on SmartFolder will be used.
[@formend@] : Mandatory, indicates end of a updatable form.
<input name="obj.fd_name" type="text" value="@name@" /> or <input name="obj.cf_18168" type="text" 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 fields start with obj.fd_ while custom fields start with obj.cf_. For the custom fields use the field id number to address the field.

Displaying Checkbox field

To display a Checkbox inside an updateable webpage view field use the following syntax:

<input name="obj.cf_fieldid" type="hidden" value="" />
<input name="obj.cf_fieldid" type="checkbox" value="" />
  • You must include a hidden object with the same name as the check box object, directly prior to the checkbox object.

Example:


<input name="obj.cf_12345" type="hidden" value="" />

   <input name="obj.cf_12345" type="checkbox" value="Financial" />Financial


See Also