Hi Sandy,
Just so that I understand it correctly are both of these fields been made mandatory at SharePoint level? If yes then you would not be able to override this even if you hide these fields in the Panel as SharePoint would expect a value when you add a new record
You could remove the mandatory setting at SP level and validate this at Nintex form level.
Regards,
Shrini
Hi Sandy S,
Best practice is while creating a Site Column/List Column, ensure the field is NOT marked as mandatory.
Mandatory fields need to be taken care on the Nintex form level using the rules on the field controls.
Hey Sandy! Are you currently hiding the controls with a panel? I'm guessing, if so, that your expression looks something like this when you open the properties of your panel and go to Appearance > Visible = Expression:
fn-IsMemberOfGroup(Managers)
Or are you hiding it with a rule on the panel in the right pane with something like this:
Depending on which one you're using, and if you'd like to remain with that and stay consistent, I'll show both ways of accomplishing this! You do need to make sure that the columns are not required in SharePoint. We'll take care of that here in Nintex.
In the control settings, there is a "Validation" part where you can put in a rule for validating the control. There is also a way to do it in the rules pane. You can make it dependent on who is signed in, and whether or not they're in a particular group. Keep in mind, however, if your "Manager" user would ever make a submission as an "Employee" and you're using group based logic, you could "mess up" your flow.
So, do you want to accomplish "if user is in group manager, this field is required" or "if user is in group manager AND is not the original requestor (I'm assuming you have a requestor field)"?
Hi Shrinivas Naik and Chaitra B C
The Manager column is indeed a SharePoint column. Whenever employee fills in the form, they keep on get Manager as required filled in as shown:
I have not tried that option. Let me check if it works for me.
Thanks everyone!
Hey Sandy,
Can you post a screenshot of how you're hiding the panel? That would help me give you a more direct instruction for how to make it "conditionally" required (only required under certain circumstances, like if the person editing is the manager). Also, make sure that you make the columns (approved date for manager and comments for manager) NOT required in the SharePoint list settings.