Re-direct to form when using form sets...
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
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
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
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
-
- Information
-
Who is online
Users browsing this forum: No registered users and 3 guests