melmel Posted July 18, 2013 Report Share Posted July 18, 2013 When user selects a specific title from a dropdown I want to send a specific email to him. How can I do that? Quote Link to comment Share on other sites More sharing options...
MayMusic Posted July 19, 2013 Report Share Posted July 19, 2013 You can add three virtual fields to your page 1 and 2 will keep the email template as static value and based on the user selection will assign the associated value to the third one. And add this script to an HTML Block at the end of the list: <script> function f_email(){ if (document.getElementById('InsertRecordFIELDNAME').value == "TITLE"){ document.getElementById("cbParamVirtual3").value=document.getElementById("cbParamVirtual1").value;} else { document.getElementById("cbParamVirtual3").value=document.getElementById("cbParamVirtual2").value; } } document.getElementById("caspioform").onsubmit=f_email; </script> You need to replace all IDs with appropriate ID. 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.