Skip to main content


 

Symptoms


After creating custom views and adding to a form, the form submission does not save information added to these custom views. Only the fields on the original view are saved to the SmartBox/SharePoint list.
 

Diagnoses


The primary list was created with 25 columns, then SmartForms were auto-generated when the list was appified. Several of the controls that correspond to columns on the list were removed from the default auto-generated view and moved to several custom-created views. These custom views were then added to the original form and controlled with rules to be visible/hidden based off of user input into the form.

On the deletion of the controls from the original view, the parameter input entries into the "Create List Item" method call in the Save button click rule were erased, causing the information to not be pushed into the SmartBox and subsequently saved to the SharePoint list.
 

Resolution

On the Save button click rule, call the "Update List Item" method directly after the "Create List Item" method, pass in the ID value from the "Create List Item" method call output, and populate the input parameters with the values from the controls from the custom views.

This process should be repeated for the Edit view. Additionally, changes will be necessary to update the "Initialize" rule on both the Edit and Display views to properly populate the controls when the form is loaded on an existing line item for the list.




 
Be the first to reply!

Reply