TO show field message
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 02:07 AM
Hi Everyone,
I have a requirement where I need to show the field message based on field value changes but the message contain a link which not possible in field message but client wants below that field only is there any alternate way to achieve the requirement. My link is too long that's why even the link is not appearing inside the blue box due to split in the form. I can't use addInfoMessage
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
var msg = "You have to contact Export Control(https://example.com)";
var data = g_form.getValue('u_exp_control');
if (data == 'true') {
g_form.showFieldMsg('u_exp_control',msg);
} else {
g_form.clearMessages('u_exp_control');
}