The CreatorCon Call for Content is officially open! Get started here.

Populate the field info message

DeepikaR1661877
Tera Contributor

Hi All,

There is one requirement in incident table when category is "Dev" and subcategory is "Test" then i want populate the info message under the subcategory field(Based upon the subcategory is depend field of category) So i have created the one onchange client script,  it's not working i have try to get the value by using the console, even i didn't get, any one help on this part?

 

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
   if (isLoading || newValue === '') {
      return;
   }
    var category = g_form.getValue('category');
alert('checking' + g_form.getValue('category'));
    var subcategory = g_form.getValue('subcategory');
    if (category === 'Dev' && subcategory === 'Test') {
        g_form.addInfoMessage('Please proceed with caution while handling internal support investigations');
    } else {
        g_form.clearMessages();
    }
}
}
1 ACCEPTED SOLUTION

Hello @DeepikaR1661877 

  • No, You cannot populate link using g_form.showfieldmsg().
  • The g_form.showFieldMsg() method is primarily used to display messages (such as error, warning, or informational messages) below a field.

Hope this helps!

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"

 

Thank You
Juhi Poddar

View solution in original post

20 REPLIES 20

Hello @DeepikaR1661877 

Thank You for marking my response as helpful.

I hope your query is addressed.

Kindly mark it as an accepted solution as well, doing so will help future readers to locate the solution easily in community.

 

Thank You

Juhi Poddar