Summary
This script increments the property “reqID” by 1 and defaults the value to 0 if the property does not exist. It runs the script when the “requestor” question is saved and performs the increment before the form is saved.
Script
<script scriptId="incrementReqID">
<body>
<s:incrementProperty>
<s:name>
<s:string value="reqID"/>
</s:name>
<s:step>
<s:number value="1"/>
</s:step>
<s:default>
<s:number value="0"/>
</s:default>
</s:incrementProperty>
</body>
<target action="update" typeId="requestor" when="after" shouldReconcile='false' />
</script>Need more help?
Please visit the Fountayn Contact Information page.