Forums

confirm your address

vortex71 06 Apr, 2010
Hi
I am using ChronoForm extension in order to create a page that will function like a security gate. What I want to say by that ( and to be able to do ) is that this page will allow the user to move to the next page only after s/he choose a specific option from a dropdown option menu.
I create the page but unfortunately the submit button takes the user to the next page even if the user doesn't chose any option.
I need the submit button to be active only if an option is chosen or if no option is chosen but the submit button is clicked that the user will be shown an error option and will be asked to make a selection.
Please see the attachment
GreyHead 06 Apr, 2010
Hi vortex71,

You'll need to add some JavaScript to disable and enable the submit button. And presumably also server-side validation to check the response.

Bob
vortex71 06 Apr, 2010

Hi vortex71,

You'll need to add some JavaScript to disable and enable the submit button. And presumably also server-side validation to check the response.

Bob



Hi BOB ,
thank you very much for your prompt reply. Can you please give me more details about the JavaScript you mention ...I have to admit I don't know much about it.
thank you again
vortex71 06 Apr, 2010
Actually I figure it out...I don't need to add anything , but just to force the drop down selection to be validate( from the params).
Anyway thanks
GreyHead 06 Apr, 2010
Hi vortex71,

Yes that's a good solution.

You need to have a default option with value='' for the validation to work correctly.

Bob
This topic is locked and no more replies can be posted.