Show field message not working properly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2024 06:36 AM
Hello team,
I'm finishing a catalog form and got stucked with a "simple" thing.
The form has 2 options, Deactivate and Re-Activate groups, if the user types a group name that is already activate and select (Re-Activate), it must show a message saying that the group is already active in service now, it's working but not very well.
To make the message show, I need to change the selection of Deactivate and Re-Activate 2 times, if I just type the group name and select 1 option, it is not showing the message.
Note: I created a hidden variable called group_status that auto populate true or false depending on the group name.
My Client Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2024 06:53 AM
Bring the field on the form display and hide it using g_form.setDisplay
Then you will be able to read it as its present on the form. if its not in the layout itself then you will have to read it from server side and will have to make an ajax call for it, long way.