- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2022 10:48 PM
Hi,
I have a select box with 2 options, we have to get an info and alert messages based on selection of the option in that variable
Thanks,
Asish
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2022 11:03 PM
Write a onCHange client script on that variable
if (newValue == "required choice value"){
g_form.addInfoMessage(" required message here");
alert("Required message");
}
// for other value if you need to display some other message
else {
g_form.addInfoMessage(" other required message here");
alert("other Required message");
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2022 11:03 PM
Write a onCHange client script on that variable
if (newValue == "required choice value"){
g_form.addInfoMessage(" required message here");
alert("Required message");
}
// for other value if you need to display some other message
else {
g_form.addInfoMessage(" other required message here");
alert("other Required message");
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2022 11:34 PM
Its working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2022 11:15 PM
Hi
you can write the onChange() Client Script
---------------------------------------------------------------------
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
var emptype = g_form.getValue('SelceBox_variable');
if(emptype=='employee'){
alert('Message'+emptype);
}
else(emptype=='consultant'){
alert('Message'+emptype);
}
}
---------------------------------
please mark my comment Helpful if it has solved your query.