I have a button on a form that I use to commit the data and then redirect to another page.
What I am hoping to have is to be able to redirect to different pages based on the value of a type field.
Right now everything goes to one page using:
<input type="button" class="ms-ButtonHeightWidth" value="Resubmit" name="btnResubmit" onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={https://redirected_pageA.aspx}')}"/>
What I would like is something like:
If FieldType='A' then
<input type="button" class="ms-ButtonHeightWidth" value="Resubmit" name="btnResubmit" onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={https://redirected_pageA.aspx}')}"/>
else if FieldType="B" then
<input type="button" class="ms-ButtonHeightWidth" value="Resubmit" name="btnResubmit" onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={https://redirected_pageB.aspx}')}"/>
else if FieldType="C" then
<input type="button" class="ms-ButtonHeightWidth" value="Resubmit" name="btnResubmit" onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={https://redirected_pageC.aspx}')}"/>
Endif
Can anyone help me to get this end logic? I am using Sharepoint Designer 2007.
Thanks in advance