I am working one of the projects and when a user fills in the form (NewForm.aspx), he can enter all his form details.
However, when he submits and trying to edit the existing form (EditForm.aspx), he should not be able to fill in the Manager and remarks as shown:
I have read Nintex Community article to switch the mode and recommend to check the URL
var isNewMode = document.location.pathname.indexOf("/NewForm.aspx") > -1;
var isDisplayMode = document.location.pathname.indexOf("/DispForm.aspx") > -1;
var isEditMode = document.location.pathname.indexOf("/EditForm.aspx") > -1;
Q: How could I put this code inside my form?
Some other suggested to use following code.
Can you someone please let me know, which is the best approach to achieve this?
Solved! Go to Solution.
I'm trying to understand your requirement.
Once the "New" form is submitted and opened up buy anyone BUT the manager the Manager Remarks should be disabled
If the manager Opens the Edit form they should be able to enter remarks
If the above is correct you can just put a Rule on the Remarks coloumn of CurrentUser!=ManagerPeoplePicker and set it to Disabled
Thanks Warwick Ward for your time to view my issue.
I have around 70-80 fields when a user submits when he enters within NewForm.aspx.
When I manager approves, he need to just fill his/her remarks within EditForm.aspx.
But EditForm is editable for all 70-80 fields.
Q: Where I can EditForm.aspx within Nintex Form and make these 70-80 fields disabled form?