This content has been marked as final. Show 3 replies
Hi Dan, I believe that you can do this on the page where your form resides. It isn't done directly in the form.
You cannot do this from directly within the form editor, but you can do this with the addition of some custom code. Since Forms 2 loads asynchronously you'll need to use the whenReady event to make sure that the code executes correctly:
$('#yourId').addClass('myClass myOtherClass'); //add a class
$('#yourId').attr('yourAttribute', 'yourValue'); //add an attribute with a value
Keep in mind that you can only have a single id per element, so overwriting this is not a good id, and can break form functionality.
Thanks for that! That worked.