Trigger "actions" on field population in the forms ?
- Andrea
-
Topic Author
- Offline
- Elite Member
-
Less
More
7 years 4 months ago #119088
by Andrea
Visit my page! www.elementotango.it
Trigger "actions" on field population in the forms ? was created 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
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
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
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
-
7 years 4 months ago #119113
by Andrea
Visit my page! www.elementotango.it
Replied by Andrea on topic Trigger "actions" on field population in the forms ?
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.
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
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
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2026 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.