Page 1 of 1

Redirect from edit to display based on group and form value

Posted: 14 Oct 2016
by Jimmy Daresta
So I have workflow that can be invoked manually to copy an item to new one. In the business process when a user submits a form for approval they cannot edit the form. However, for them to invoke the copy process they need edit ability for an item. I know I can go through and do a bunch of javascript programming to make the edit form read only and hide stuff, but this is a lot of work especially for the ribbon. Is there a way simply that if I left the user with edit ability that in the javascript when a approved field has a value and they are in a certain group I redirect them to the display only form?

Re: Redirect from edit to display based on group and form value

Posted: 17 Oct 2016
by Dmitry Kozlov
Hi Jimmy,

You can create a separate group of forms, switch all fields into display mode, and configure the group's rule this way:

[Status] = 'Waiting for approval'

Where Status is a field containing the appropriate status of an item.

Re: Redirect from edit to display based on group and form value

Posted: 17 Oct 2016
by Jimmy Daresta
I have separate forms for the groups for all three modes. The issue I have is that after its hit a certain status I want when one group comes to edit that it goes in complete display mode. I know with javascript I can do and do this, but I would rather just send them to the display page instead. If I can create another "edit page" and get the group to that when the status becomes what it needs to be to invoke that that would be great.

Re: Redirect from edit to display based on group and form value

Posted: 18 Oct 2016
by Dmitry Kozlov
The ony option I see here is redirecting users from a certain group to a display form with JavaScript (fd.openForm):
http://spform.com/documentation/js/manager

Re: Redirect from edit to display based on group and form value

Posted: 19 Oct 2016
by Jimmy Daresta
Well let me ask you this. Is there a way in the actual forms via SPD to do something there? Like test for a value and then redirect? Something like this? Would changes get wiped out if one edited the form again via the SPForms Designer? Is there the idea we could do some csharp or such type coding in the designer someday for things like this?


https://www.youtube.com/watch?v=_s5ZENwxYJs

Re: Redirect from edit to display based on group and form value

Posted: 20 Oct 2016
by Dmitry Kozlov
You can check a field value with JavaScript and redirect a user to another form conditionally:

http://spform.com/office-365/cond ... ynamically

Also, you can insert XSLT-code into your form with the help of HTML-control of Forms Designer. Just switch CDATA property in False.