I have a 3-tab form. Ideally there would be "next" and "back" buttons at the bottom of tabs one and two, and "back" and "submit" buttons at the bottom of tab 3 so users would be prompted to advance to the next tab after completing the current one.
But for now, I'm just trying to hide the submit button until the "I Agree" box is checked.
Under Module Configuration>Links>Submit Link/Button, I've checked "Initially hide form submission button"
Under Module Configuration>Advanced Coding Options>Custom Javascript File>Submit/Save Javascript I've added
if ( $(Agree) == 'Yes' )
{
showhtml('SubmitForm');
}
else
{ hidehtml('SubmitForm');
}
I've also added that script to Client side event in the "Agree" question's Advanced Field Options.
The submit button does not appear. Please advise.
|