I have a long Nintext form, and I want to be able to toggle a form back and forth between Edit mode and Display mode, and I can't seem to find a way to do that.
I want to use Display mode for my print view because I need my form to resize text boxes so that the whole box is showing. I would also like to have the buttons hidden, as they are in Display mode. It seems to me like there should be some simple way to do this toggle, like when you click "Edit" in he ribbon when the form is in Display mode. However, once I click Edit and go to Edit.aspx I don't find any way to go back to Display other than closing the form and re-opening it.
I've been poking at this problem for two days now and can't seem to find a solution or a post where someone else had had this issue. I'm probably missing something really obvious, and I'm hoping someone will be able to point it out to me.
Solved! Go to Solution.
My thought would be create a form variable that creates the URL you need. I do a build string action in a workflow that takes people into the edit version of the form when they click on it. I'm not exactly sure on the syntax to build out the route to display, I imagine it is close.
Once you do that, create a save button that re-routes you to the url you've built from your form variable. There is an option to redirect after click. You could also set it to run a java script and try it that way. I'm not familiar enough with JS to know eactly how you would accomplish that. Lastly once you have your button ready, just place it in a panel that hides on the form but still shows in the ribbon. That way you don't have this extra button hanging around on your form.
I'll experiment with that approach. I also thought it might be possible to add a link to the DispForm.aspx file and add the list item to the URL as a variable (something along these lines: https://community.nintex.com/t5/Nintex-for-SharePoint/Add-variable-to-URL-on-Nintex-Form/td-p/64186),
But it really seemed to me like toggling between the Display and Edit modes would be an OOTB thing and I didn't want to cutomize something if I was just being dumb, but maybe it's a less common need than I would have thought.
I have an easy solution that I'll share in case it's useful for someone else. You can creat a toggle to Display from Edit view by doing the following:
The calculated field seems unnecessary, but for some reason it wasn't working when I directly inserted the ID.