| User | Post |
|
5:01 am October 18, 2010
| grazz
| | |
| |
|
|
Hi,
I was considering buying Formidable Pro, but before doing that, I'd like to know what attributes can be set for hidden inputs. I'd need to be able to have a custom value, and maybe a custom name or alternatively the possibility to add an id or a class.
Thanks
|
|
|
9:17 pm October 18, 2010
| Steph
| | |
| |
|
|
What exactly are you after with the hidden fields? You can "hardcode" the default value for hidden fields, just like the others. In the Pro version, there are also dynamic default values which include pulling a value from your url. If these are too limiting, you can even add a little PHP to a new plugin or your theme functions.php to see the value a field. So I guess my question is what value would you like in the hidden field, and where would that value be coming from?
The name and id is not customizable in order for Formidable to recognize it. However, there is a WordPress hook within the <input> tag, so you can customize the other parts of the field if you would like.
|
|
|
3:22 am October 19, 2010
| grazz
| | |
| |
|
|
Hello Steph,
thank you for your reply. The value is not the big problem here; if that can be added just like for text inputs, it's okay. What I'm looking for is to pick up the values of two different hidden inputs via jQuery so that I can work with them, that's why I need a way to select the hidden inputs by name or id. This should work for multiple forms I would add through a blog, so I guess I can't use the default names as they would be different for different forms, right?
Thanks
|
|
|
10:26 am October 19, 2010
| Steph
| | |
| |
|
|
Yes, the name and id would be different for each field. The id is usually "field_" then the field key tacked on. I've been telling users to just stick the javascript right into the customizable HTML since it would be different for each form.
Would this be an option in your case?
|
|