Skip navigation
Currently Being Moderated

User Entered Email Address Becomes Hyperlink

Jun 18, 2012 7:48 AM

Is there a script that will change a user entered email address to a clickable hyperlink?

 

Thanks

 
Replies
  • Currently Being Moderated
    Jun 18, 2012 8:47 AM   in reply to DKinsley

    Hi,

     

    If you set the font to an underline and then have script in the click event of the field, that uses the rawValue of the field. You would need to check in an if statement that the rawValue !== null.

     

    Should work,

     

    Niall

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 18, 2012 9:07 AM   in reply to DKinsley

    Hi,

     

    Something along these lines should work (click event of textfield):

     

    if (this.rawValue !== null) {
         var vEmail = this.rawValue;
         var vSubject = "A Subject for your email";
         var vBody =  "Put your body message here...";
    
         event.target.app.mailMsg({
              bUI: true,
              cTo: vEmail,
              cSubject: vSubject,
              cMsg: vBody
         });
    }
    

     

    That should get you along the right lines,

     

    Niall

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points