Jump to content

paloo

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Hello. The following javascript works fine, in that it takes an email address ("Email") and copies it to a field ("AckEmail") that is used to populate an acknowledgment email upon the checking of a checkbox ("IssueDeclineEmail") in a record. However, in order for this to work, the Email record needs to be in edit mode (as does the AckEmail field) making it possible for a user to delete the Email value where it will be lost on an Update of that record. Is there anyway to have this javascript work while the field "Email" is hidden or not visible to the user, so there is no possibility of messing it up? Thanks for any help here. <script> function assignemail() { if (document.getElementById ("EditRecordIssueDeclineEmail").checked) { var emailnew=document.getElementById("EditRecordEmail").value; document.getElementById("EditRecordAckEmail").value=emailnew; } else { document.getElementById("EditRecordAckEmail").value="localhost@localhost"; } } document.getElementById ("EditRecordIssueDeclineEmail").onclick=assignemail; </script> Regards, paloo
×
×
  • Create New...