You create a canvas app screen Screen1
You add a TextInput control (named TextInputFld) and a Button (named ButtonAdd)
You set the TextInput field Default property to empty.
You need to be sure that when a user enters the text in TextInputFld and clicks the ButtonAdd, the app would store the input and clears the TextInput field for the new entry.
What function should you use to clear the TextInputFld?
Click on the arrows to vote for the correct answer
A. B. C. D. E.Correct Answer: D
If you need to set a control back to the Default property, you use Reset (Control)
Reset(TextInputFld) is resetting a control to the Default property.
You can also use ResetForm(FormName)
But it will reset all the controls on your form.
Or you can set a control's value to empty using a variable.
All other options are incorrect.
For more information about canvas app formulas, please visit the below URLs:
The function that should be used to clear the TextInputFld when the ButtonAdd is clicked is A. TextInputFld.Clear.
Explanation:
When a user enters the text in the TextInputFld and clicks the ButtonAdd, an action must be taken to store the input and clear the TextInput field for the new entry. The TextInputFld.Clear function will clear the contents of the TextInputFld and set it to an empty string, allowing the user to enter new data.
The other options are:
B. Reset(Screen1) - This function resets all the controls on the Screen1, which is not the desired action. It would clear all the data entered by the user on the screen, not just the TextInputFld.
C. Reload(TextInputFld) - This function is used to refresh the data source of the control, which is not the desired action in this case. It would refresh the data in the TextInputFld, but not clear it.
D. Reset(TextInputFld) - This function is used to reset the value of a control to its default value, which is not the desired action in this case. The default value of the TextInputFld is empty, so using this function would not clear the text entered by the user.
E. Clear(TextInputFld) - This function is not a valid function in Power Apps. Therefore, it is not the desired function to clear the contents of the TextInputFld.
In summary, the desired function to clear the contents of the TextInputFld in a canvas app when the ButtonAdd is clicked is A. TextInputFld.Clear.