Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2023 01:02 AM - edited ‎09-24-2023 11:13 PM
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2023 01:30 AM
Try with Onsubmit catalog client script.
function onSubmit() {
if(!g_form.getValue("var1_name") && !g_form.getValue("var2_name") && !g_form.getValue("var3_name")){
alert("Fill atleast one field from the below fields\n Variable 1\nVariable 2\nVariable\3");
return false;
}else{
return true;
}
}
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2023 01:57 AM
Hi @Deepika Ravindr.,
You can write a Onsubmit client script for this.
function onSubmit() {
if((g_form.getValue("title") == ' ' ) && (g_form.getValue("short_description") == ' ' ) && (g_form.getValue("description") == ' ')){
alert("Please fill one of these fields");
return false;
}else{
return true;
}
}
Mark this answer as correct and helpful if it solves your issue.
Regards,
Siva Jyothi M.