Input Value Retention with Attribute Render versus Form Helper
Permalink 1 user found helpful
Concrete5 has the great form helper which will retain a users selections and inputs when a form is submitted to the containing page and the page is re-rendered.
Sometimes it's imperative that I use an attributes render function instead, that way if a user adds his own select options, etc.. any forms the attribute is being shown on will automatically update.
Is there a simple way of retaining the values when using the $akt->render() function versus the $form->select() function?
At this point I am going to have to load up the attribute and cycle through all the available options building the form helper attributes manually.
Am I missing a better way?
Sometimes it's imperative that I use an attributes render function instead, that way if a user adds his own select options, etc.. any forms the attribute is being shown on will automatically update.
Is there a simple way of retaining the values when using the $akt->render() function versus the $form->select() function?
At this point I am going to have to load up the attribute and cycle through all the available options building the form helper attributes manually.
Am I missing a better way?
In the Controller:
further down in my form processing area of the controller
In the view I am rendering it like so: