Trigger "actions" on field population in the forms ?

  • Andrea
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 4 months ago #119088 by Andrea
The topic subject couldn't be more cryptic - I know.

Here's the thing:

I have a subscription form. A field can be used to accept a letter, to indicate wether the person is "M" male or "F" female. Easy.

Then, I need to intercept if the person is a "F" _during_ the populating of the form and stop it. At that moment, I need to do something else, like pop-up something, or redirect the lady to another page.

In other words, I need to block ladies from subscribing as early as possible, not just at the very end of the form. Any ideas how I can do that ?

Thanks!!

Regards Andrea

Visit my page! www.elementotango.it

Please Log in or Create an account to join the conversation.

More
7 years 4 months ago #119090 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Trigger "actions" on field population in the forms ?
Hi Andrea

If so, I guess you will have to try to add some javascript code to registration form, register onchange event handle for that field

Then on the javascript function which handle the change, check the entered value. If they enter something you don't like, show a message in popup of redirect as you said

See api.jquery.com/change/ for documentation. I guess you need to know some javascript programming to implement this change

Tuan

Please Log in or Create an account to join the conversation.

  • Andrea
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 4 months ago #119113 by Andrea
Hi Tuan

thank-you for the prompt answer. I don't have such knowledge unfortunately, so I will need to find a different solution.

Thanks anyway!

Kind Regards Andrea.

Visit my page! www.elementotango.it

Please Log in or Create an account to join the conversation.

More
7 years 4 months ago #119121 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Trigger "actions" on field population in the forms ?
OK Andrea. Hope you will find a good solution for your problem

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc