Microsoft
MB2-701 · Question #55
Which JavaScript code segment shows the correct way to set the value of a field that is formatted as a single line of text?
The correct answer is A. Xrm.Page.getAttribute("new_string").setValue("1234"). See the full explanation below for the reasoning.
Question
Which JavaScript code segment shows the correct way to set the value of a field that is formatted as a single line of text?
Options
- AXrm.Page.getAttribute("new_string").setValue("1234");
- BXrm.Page.getAttribute("new_string").DataValue = "1234";
- CXrm.Page.gctAttribute("new_string").setValue(1234);
- DXrm.Page.getAttribute(Mnew_string").setValue() = ,,1234";
How the community answered
(29 responses)- A79% (23)
- B7% (2)
- C3% (1)
- D10% (3)
Community Discussion
No community discussion yet for this question.