Redirect from edit to display based on group and form value

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
Jimmy Daresta
Posts: 13
Joined: Mon Aug 01, 2016

14 Oct 2016

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?

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

17 Oct 2016

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.

User avatar
Jimmy Daresta
Posts: 13
Joined: Mon Aug 01, 2016

17 Oct 2016

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.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

18 Oct 2016

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

User avatar
Jimmy Daresta
Posts: 13
Joined: Mon Aug 01, 2016

19 Oct 2016

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

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

20 Oct 2016

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.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests