ServiceNow Certified Application Developer — Question 48
When writing a Client Script to provide feedback targeted at a specific field, which method should be used?
Answer options
- A. g_form.showInfoMessage()
- B. g_form.showFieldMsg()
- C. g_form.addInfoMessage()
- D. g_form.addFieldMsg()
Correct answer: B
Explanation
The correct answer is B, g_form.showFieldMsg(), because it specifically targets a field to display a message. The other options either provide general messages or do not specify a field, making them unsuitable for this purpose.