Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam CAD topic 1 question 45 discussion

Actual exam question from ServiceNow's CAD
Question #: 45
Topic #: 1
[All CAD Questions]

Which of the following methods prints a message on a blue background to the top of the current form by default?

  • A. g_form.addInfoMsg()
  • B. g_form.addInfoMessage()
  • C. g_form.showFieldMessage()
  • D. g_form.showFieldMsg()
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Reference:
https://docs.servicenow.com/bundle/orlando-application-development/page/script/useful-scripts/reference/r_DisplayFieldMessages.html

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
kundgir
Highly Voted 2 years, 6 months ago
Answer should be B.
upvoted 14 times
...
Erdi
Highly Voted 2 years, 5 months ago
Answer should be B
upvoted 14 times
...
Dekoreh
Most Recent 7 months, 1 week ago
Selected Answer: B
B is correct
upvoted 1 times
...
Alice_Steele
1 year, 1 month ago
Selected Answer: B
it's B
upvoted 2 times
...
Stardust85
1 year, 4 months ago
Selected Answer: B
https://developer.servicenow.com/dev.do#!/reference/api/tokyo/client/c_GlideFormAPI#r_GlideFormAddInfoMessage_String
upvoted 3 times
...
agarwans
1 year, 10 months ago
Answer is AddinfoMessage
upvoted 2 times
...
parcerocarl
1 year, 11 months ago
showFieldMessage is used for displaying messages under a specific field, this is another question in the CAD exam
upvoted 2 times
...
arunmech2001
2 years ago
Selected Answer: B
Answer is B
upvoted 6 times
...
bigmikeyvegas
2 years, 1 month ago
From: https://docs.servicenow.com/bundle/paris-application-development/page/script/general-scripting/reference/r_ScriptingAlertInfoAndErrorMsgs.html g_form.showFieldMsg("field_name", "Hello World", "error"); Puts "Hello World" in an error message **below the specified field**. g_form.addInfoMessage() or g_form.addErrorMessage() place a blue box message at the top of the screen. Pg 126 of the CAD handbook
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...