I am trying to have different URL's appear on a selection form, based on the value of a virtual field (text value, populated by a parameter). This is the code I was trying:
<script>
if (document.getElementById('cbParamVirtual1').value='1'){document.write('<a href="<a href="http://www.notexponent.com/DatabaseNM61272/SurgeryForm.html?ProcedureCodeClinicalUnits1=[@field:ProcedureCodeClinicalUnits]&IDProcedureCode1=[@field:ID]&ProcedureCodeDescription1=[@field:ProcedureCodeDescription]">Select</a>');}
<script>
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
NickMartinCJS
I am trying to have different URL's appear on a selection form, based on the value of a virtual field (text value, populated by a parameter). This is the code I was trying:
<script>
if (document.getElementById('cbParamVirtual1').value='1'){document.write('<a href="<a href="http://www.notexponent.com/DatabaseNM61272/SurgeryForm.html?ProcedureCodeClinicalUnits1=[@field:ProcedureCodeClinicalUnits]&IDProcedureCode1=[@field:ID]&ProcedureCodeDescription1=[@field:ProcedureCodeDescription]">Select</a>');}
<script>
Please help.
Nick
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.