Allowing inputs without names.
Closed this issue · 1 comments
tylerhcarter commented
Sometimes you want to create an input that doesn't post through. Like for disabled example inputs.
It would be great to do a simple check before attempting to grab the value from the form data. If there was no name field, just putting the blank field (with the provided 'value').
Right now the biggest problem with doing this is it gives an undefined error.
scribu commented
I don't know; one of the biggest advantages of using scbForms is that it takes care of data binding. If you don't need that, you could just use html()
. There's also 'type' => 'custom'
which passes the arguments to a callback you give it.