Re-direct to form when using form sets...

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
pselman
Posts: 24
Joined: Wed Nov 04, 2015

15 Sep 2017

Hi,

We are using a number of different form sets and currently have a re-direction in java-script that works but with a slight delay.

We know that we can use a html field to do this with no delay and have tried using this code on the default edit form;

<script type="text/javascript">
<xsl:if test="@Action_x0020_Type='Electrical Assessment'">
fd.openform('fd_Task_ebbaca14-3a0b-577b-e5e2-5258a39e3ab9_EditForm.aspx');
</xsl:if>
</script>

This does not re-direct and just loads the default edit, which only have the field on

The only difference to having seen this work elsewhere is that this is a task list and Action Type is a lookup field

Thanks

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

15 Sep 2017

pselman wrote:
15 Sep 2017
<script type="text/javascript">
<xsl:if test="@Action_x0020_Type='Electrical Assessment'">
fd.openform('fd_Task_ebbaca14-3a0b-577b-e5e2-5258a39e3ab9_EditForm.aspx');
</xsl:if>
</script>
Right here, the main issue I see is the syntax, it's supposed to be:

Code: Select all

<script type="text/javascript">
	<xsl:if test="@Action_x0020_Type='Electrical Assessment'">
	fd.openForm('fd_Task_ebbaca14-3a0b-577b-e5e2-5258a39e3ab9_EditForm.aspx');
	</xsl:if>
</script>
Cheers

pselman
Posts: 24
Joined: Wed Nov 04, 2015

15 Sep 2017

Thanks Nikita...! Capital F!

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests