Is there a submit_value function for Form Builder Class?
I'm sorry if I keep asking about Fuel's CMS, I'm still new and I want to use all of the features to it's full potential.
I want to be able to set the name and value of the submit button when i create forms with the form builder class. However the only option according to the user guide is to change the value, which will default with the same name.
$this->load->library('form_builder', array('submit_value' => 'add'));
This where my idea of getting it to work with:
$this->form->submit('Add new entry', 'add', 'class="submit"');
Comments
<input type="submit" value="Add" name="add" />
Thanks.
<input type="submit" value="Other Action" />
http://www.getfuelcms.com/user_guide/libraries/form_builder
And is there any way to set a class on the submit that is generated by form_builder (not the one created with additional css) ? I see a way to set a value for the whole form, but not for the submit, cancel, reset.
<input type="submit" class="my_submit_class" value="Save" />