Master Posted May 12, 2016 Report Share Posted May 12, 2016 I have a dropdown which based on selections there has to be a link to show details about that selection. Any idea of how to do that?? Quote Link to comment Share on other sites More sharing options...
MayMusic Posted May 12, 2016 Report Share Posted May 12, 2016 Let's say you have the name and URL in table. Include both to your page Name: dropdown URL: Cascading dropdown Add a HTML Block right after Name field and have the code below to show the link after selection <div id="details"></div> Add one HTML Block above URL field and paste the code below to hide cascading <table style="display:none;"><td> One HTML Block below URL and use the code below: </td></table> <script> document.getElementsByName('InsertRecordName')[0].onblur= function (){ var URL = document.getElementsByName('InsertRecordURL')[0].value; if (URL){ document.getElementById('details').innerHTML="<a href="+URL+">Details </a>"; } } </script> Replace "InsertRecordURL" and "InsertRecordName" with the actual field names. Master 1 Quote Link to comment Share on other sites More sharing options...
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.