How to Configure a YES or NO MessageBox using pop up form
In Claysys AppForms a user can add a message box with two types of button, either OK or OK/CANCEL.
In rare cases there may be needs for users to add buttons with other values.
Here we are demonstrating how you can add a message box with Yes or No Buttons using pop up forms.
Step 1
Step2
For the time being save and checkin the current form.
Step3
A Pop up window will open prompting the user to select the form to load after the button click. In this scenario we need the pop up form to be loaded. So select the pop up form and click OK.
Step4
Step5
By calling the SetFormValue() function we are passing a value from a form to another form on a trigger, like a button or a value change.
In this scenario, the function SetFormValue() carries three arguments
1.Name of the form, to which the value is being passed.
Here it is “YesOrNoMessageBox.ParentForm”.
2.Name of the control to which the value is being passed.
Here it is “txtbtn”.
3. The value to be passed. It can either be a string or control value.
Here we are passing the string value “Yes” / “No”
We also included a CloseTab() function as we are configuring a pop up form to a message box functionality .So once the user click on the ‘YES’ button the pop up form will be force closed. Same way for the ‘NO’ button. Save and checkin the form.
Step6
Note: The SetFormValue() will only work on WebPart. So to get the desired output add the forms to the web part and preview the output.
The desired outputs are attached below