exam questions

Exam CAD All Questions

View all questions & answers for the CAD exam

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: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Erdi
Highly Voted 2 years, 6 months ago
Answer should be B
upvoted 15 times
...
kundgir
Highly Voted 2 years, 6 months ago
Answer should be B.
upvoted 15 times
...
Dekoreh
Most Recent 7 months, 3 weeks ago
Selected Answer: B
B is correct
upvoted 1 times
...
Alice_Steele
1 year, 2 months 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 4 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 3 times
...
arunmech2001
2 years, 1 month 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 5 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago