Differences

This shows you the differences between two versions of the page.

Link to this comparison view

save and add behavior [2016/09/14 14:19] (current)
Line 1: Line 1:
 +====== Save and Add Behavior (Form Setting) ======
 +**Save and Add behaviors** are settings on [[Form|forms]] that allow the builder to define how the form will behave when the form is submitted (the Save or Add button is clicked). Multiple behaviors can be set up on any one form, and if more than one exist on a form that has the appropriate [[Security|security]] (in either [[Security|edit mode]] or [[Security|add mode]]) and can be submitted (for [[Form Type - Page|pages]],​ has [[Form Setting - Enable Page Save and Add Controls|save controls]] enabled; for other forms, has [[Form Setting - Allow Form to Be Saved Independently of the Page|independent save controls]] enabled), the end user gets a choice of behaviors, and the selected option will actually execute.
  
 +===== Settings =====
 +  * **Option Title** - This is the text that will appear next to the Save or Add button. If only one behavior is present for the appropriate [[Security|mode]],​ the text will be displayed as plain text. If multiple behaviors are present, the text of each available option will be displayed in a drop-down for the user to choose from. If left blank, and only one behavior present, no text will proceed after the button. This is very helpful when
 +  * **My Form** (required) - the choice selected here will be what happens to the form that's getting submitted. Options are:
 +    * Reload Current Page - when selected, the [[Form Type - Page|page]] the submitted [[Form|form]] is on will reload in the selected mode when the form is submitted.
 +    * Reload Current Form - when selected, the submitted form will reload in the selected mode when the form is submitted.
 +    * Load Different Page - when selected, the browser window the submitted form is on will load in the selected mode to the selected page when the form is submitted.
 +    * Close Popup - when selected, the browser window the submitted form is on will close. Behaviors with this option selected are only available if the page was opened in a popup.
 +    * Close Page - when selected, if the browser window the submitted form is on was opened by clicking a link (not using a bookmark, or entering a URL directly), then the window will close. ​ If the form is loaded through direct means (not through a link), then Behaviors with this option selected will not be visible. ​ If the only behavior for the Save is one of these, then it will default to reloading the page.
 +  * **Form Below** - the choice selected here will be what happens to the form that the [[Field Type - Link|link]] that opened the current window is on. Note that this setting only applies when the current page is opened in a popup. Options are:
 +    * Reload Opening Page - when selected, the page the link that opened the current page is on will reload in the selected mode when the form is submitted.
 +    * Reload Opening Form - when selected, the form the link that opened the current page is on will reload in the selected mode when the form is submitted.
 +    * Load Different Page - when selected, the browser window the link that opened the current page is submitted form is on will load in the selected mode to the selected page when the form is submitted.
 +    * Reload Opening Row - when selected, the [[Form Type - List|list]] row the link that opened the current page is on will reload when the form is submitted. The mode of the opening row will stay the same it was.
 +  * **Forms to Reload** - Enter a comma separated list of the Form ID's you want to reload when this Form or Page is saved. ​ An example might be; a123,​a234,​a345.
 +  * **Order** - This setting determines the order the behaviors appear in if there is more than one behavior available.
 +===== See Also =====
 +  * [[Form Setting - Use Alternate Button Text for Add|Use alternate button text for "​Add"​]]
 +  * [[Form Setting - Use Alternate Button Text for Save|Use alternate button text for "​Save"​]]
 +  * [[Form Setting - Enable Page Save and Add Controls|Enable page Save and Add controls]]
 +  * [[Form Setting - Allow Form to Be Saved Independently of the Page|Allow form to be saved independently of the page]]
save and add behavior.txt ยท Last modified: 2016/09/14 14:19 (external edit)
Copyright WorkXpress, 2019