Creates a <form> element styled as a panel with "Submit" and "Reset" buttons. This element is a container that other Spawner elements are spawned into.
Spawner Widget Name
|kind||panel.form||Spawner widget type - creates a <form> element styled as a panel with "Save" and "Discard Changes" buttons in the footer.|
|name||(string)||Arbitrary, but meaningful, name for this form panel.|
|label||(string)||Form header text.|
|id||(string)||Value for spawned element's id attribute.|
|method||GET, POST, PUT||Data submission method - defaults to POST.|
How is data sent?
|url||URL string||Load and submit data using a single url. If the same url can be used to populate values into the form fields, you can use a single property with the URL used for that.|
|action||(REST URL)||URL for data submission. URLs starting with a slash will be resolved to the site root, adding server context if necessary.|
(object, url, js)
Where are values pulled from when the form loads?
There's a 'special' syntax that can be used to specify what kind of value is used for the 'load' property (object, url, or js).
Returned data values will be inserted into form elements with name attribute values that match the property names.
For example, if this object is returned…
…the values will be set on matching elements…
…that's the simplified version anyway.
|refresh||URL||URL from which data is (re)loaded after form is submitted or reset. Values are inserted the same way as the |
|contents||Spawner object(s)||One or more Spawner element config objects that will be inside this parent element.|