Skip to main content
Participant
June 11, 2020
Question

Form field: set up to allow auto creation of hyperlink

  • June 11, 2020
  • 2 replies
  • 1674 views

I saw something about this in the Archives, but no solution, so... HELP

I created a form (think of it as a template) with several text fields, in one of which the User can enter a URL in one of the fields.  The User enters all of their data, and forwards the form to Recipients.

I'd like the Users to be able to enter the URL as text, and have the form turn that into a clickable hyperlink for the Recipients.

I know about the workaround, where the field is formatted for Rich Text and the User converts it to a hyperlink by pressing Ctrl+E.

BUT is there a way to make this happen without any intervention by the User?

(First time on here, BTW so I'm hopeful you folks can help.)

 

This topic has been closed for replies.

2 replies

Joel Geraci
Community Expert
Community Expert
June 11, 2020

Set the mouseUp event to launch the URL only if the value of the field is a valid URL. You can do this with a regex. To edit the field, tell users to tab into it avoiding the mouseUp trigger.

try67
Community Expert
Community Expert
June 11, 2020

How would it work, though? When the user clicks the field in order to enter a value into it the script will attempt to launch the URL and it would interfere with the user's actions.