I inherited a Nintex form that has a lot of different validations based on different conditions.
None of the fields in the SharePoint list are set to required but the data cards are set to required.
When I run my patch, it still patches to SharePoint even though I have empty required fields.
With that being said I am looking at putting all of the conditions in a button that will either be visible or not if the conditions are not met before it navigates to the popup patch button.
So here is my first condition I have a rich text box that can't be empty when a yes/no choice is set to "Yes"
Here is the logic and its not working as I had hoped.
Here is the same but with added choice fields.
Hi Warren,
Sorry there are two separate but related issues dealing with how to submit a form.
The form is actually continuous and controlled with tabs.
The red oval is the "Save Edit" button that can only show if all conditions are met.
The top tabs show each page/form in the process.
The first page/form is required.
Once submitted a person from the funding team will evaluate the first page input and then make their selections on the next two tabs "Funding Team" and "Next Steps", which is what you assisted me with.
Patch doesn't allow Validation and the Errors function only captures errors when the underlying SharePoint list is being used by Power Apps and not any other controls that will be required in the future when edits to the process are made.
Hi Warren,
You have it.
I wound up with this:
Hello and thank you for your response.
That wont work as I am using one form for both New and Edit.
Also, there are fields on both new and edit that are required based on what part of the form entry process is occurring. For example, the form has some fields that are required in the beginning of the process and then after the form is submitted, the second set of controls (some are required) are then updated and then the form is submitted again.
Hi @ChrisL58
Just the opposite
Len(RichTextEditor1.HtmlText) > 0 && DataCardValue36.Value
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps
Hi @ChrisL58 ,
If you simply want to display the button when the input is valid (excluding the button being true with the HTML Box empty)
!(Len(RichTextEditor1.HtmlText) = 0 && DataCardValue36.Value)
but I suspect you have a few more conditions to add to this.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps
@ChrisL58 - the SubmitForm function will validate the Required property of each DataCard prior to executing the save operation to your data source. The Patch function does not check whether the DataCard properties are valid, it will simply execute the save operation onto the fields that you specify.
Unless you have a specific reason to use Patch, I would suggest using the SubmitForm function.