nerdexam
Microsoft

70-573 · Question #243

You create a custom page layout that contains the following code segment. (Line numbers are included for reference only.) 01Please enter a number: 02<SharePointWebControls:InputFormTextBox…

The correct answer is D. <SharePointWebControls:InputFormRequiredFieldValidator. MNEMONIC RULE: "InputFormRequiredFieldValidator" RequiredFieldValidator makes sure you provide a value for the field before the form can be

Developing for User Experience

Question

You create a custom page layout that contains the following code segment. (Line numbers are included for reference only.) 01Please enter a number:

02<SharePointWebControls:InputFormTextBox ID="NumberTextBox" runat="server"/> 03 You need to prevent the page from being saved if NumberTextBox is empty. Which code segment should you add at line 03?

Options

  • A<script type="javascript">if(document.getElementById('NumberTextBox')
  • B<script type="javascript">if(document.getElementById('NumberTextBox')
  • C<SharePointWebControls:InputFormCompareValidator ID="NumberValidator"
  • D<SharePointWebControls:InputFormRequiredFieldValidator

How the community answered

(32 responses)
  • A
    3% (1)
  • B
    9% (3)
  • C
    3% (1)
  • D
    84% (27)

Explanation

MNEMONIC RULE: "InputFormRequiredFieldValidator" RequiredFieldValidator makes sure you provide a value for the field before the form can be

Topics

#page layout#InputFormRequiredFieldValidator#validation#SharePoint controls

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice