Show field message when check box is true in catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2023 06:16 AM - edited ‎07-12-2023 06:17 AM
I need a field message for a check box,if the checkbox is true in catalog item it should show a field message. Can anyone suggest how to achieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2023 06:25 AM
Greetings!
you can write on change on checkbox variable.
Please hit the thumb and Mark as correct based on Impact!!
Kind Regards,
Ravi Chandra.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2023 06:28 AM
Hi @VISWANATH KAMAL ,
Use the below code in catalog client script
if (newValue == 'true') {
g_form.showFieldMsg('Field_Name', "Message", 'info');
}
Regards,
Kiran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2023 07:58 AM
Hello @VISWANATH KAMAL
var msg = "type ur msg";
var check = g_form.getValue('check_box_field_name')
if(check == 'true'){
g_form.showFieldMessage('check_box_field_name', msg, 'info');
}
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh