openForm()
public final function openForm($onSubmit = '', $extraAttributes = '', $action = false, $scrollToTopOfSlot = false, $fadeOutAndIn = true, $usePost = true)
Opens a form, that will submit by reloading the Plugin via AJAX.
Can be used in methods called by plugins. From Zenario 7.0.0 onwards.
Allows you to have a form on your Plugin, submit the form, handle the result and then reload your Plugin using AJAX. Works by submitting to a hidden iframe.
The HTML needed to open the form.
echo $this->openForm(). $this->remember('id', 7). $this->phrase('_ENTER_YOUR_NAME'). '<input type="text" name="name"/>'. $this->closeForm().
A simple form, with a hidden field and a text field.