Creating Hyperlinks and Sending Emails on Forms

To allow your users to visit web pages or to send emails via hyperlinks on their forms greatly improves the usability of your solutions.

Designer PowerForms allows you to embed hyperlinks and email addresses in all form objects that can execute Actions. The action that allows you to directly visit web pages or send emails from forms is the Open Document/Program action.

To add a hyperlink to your form:

  1. Add an object to a form. For this explanation, we use the Text object.

    Note

    To see which events are available with various form objects, see the section Form Objects.

  2. Open object Properties > Events tab.

  3. Normally, you click on hyperlinks, so use the On Click event.

  4. Assign the Open Document/Program action. Click the Actions... button.

    • Action Editor opens.

  5. Add the Open Document/Program action.

  6. Go to File. Paste the hyperlink to the web page in the File name field.

    UUID-16971d99-cf89-b215-b9ce-7b8f088e2c5f.png
  7. Click OK. When you run the form, clicking the Text object opens the web page in your web browser.

To send emails from your form:

  1. Repeat the previous steps from 1 to 6.

  2. Go to File. Paste the email address in the File name field. Use this format: mailto:user@youremail.com.

    Note

    You can also configure the email hyperlink to open a message with predefined content. For example, to open a message with a predefined subject, use this format: mailto:user@youremail.com?subject=My%20subject.

  3. Click OK. When you run the form, clicking the Text object opens your default email client with a new message addressed to your recipient.