QuestionQ196

Application User Interface

When creating a Client Script intended to display feedback tied to a particular field, which method should be used?

  • A g_form.showInfoMessage()
  • B g_form.showFieldMsg()
  • C g_form.addInfoMessage()
  • D g_form.addFieldMsg()
Explanation

The GlideForm client-side API method g_form.showFieldMsg(fieldName, message, type, scrollForm) is specifically designed to render a message directly associated with a given field on the form, unlike showInfoMessage() or addInfoMessage(), which display general messages at the top of the entire form rather than next to a specific field. There is no addFieldMsg() method in the GlideForm API, making showFieldMsg() the correct and only valid choice for field-level feedback in Client Scripts.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!