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
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)- A3% (1)
- B9% (3)
- C3% (1)
- D84% (27)
Explanation
MNEMONIC RULE: "InputFormRequiredFieldValidator" RequiredFieldValidator makes sure you provide a value for the field before the form can be
Topics
Community Discussion
No community discussion yet for this question.