How to Use Form Virtual Fields Values in Action

The Form in the example is using Account as a source object.

1. Open your form.

2. Add text virtual field to your form.

3. Provide title and unique field name.

4. Save a form.

5. Create an Action.

How to create an Action

6. Choose the Account as a context object type for your action.

7. Choose 'Email Alert' action type.

8. Choose Advanced mode on Email Alert Settings section.

9. Open your form and copy the virtual field name.

10. Get this virtual field value using $Environment object: {$Environment.vf_subscribtion_email}. Put this expression into 'To' input on email alert action.

11. Fill in Email Subject and Email Body inputs.

12. Save the Action.

13. Add new custom button "Subscribe" to your form.

14. Add new Action "Activate Subscription" to your Form to call the Global Action you've created.

See more info on creating actions in Actions article.

15. Add onClick event to the Subscribe button with handler "Activate Subscription".

See details in Events article.

16. Save your changes.

17. Run the form.

18. Fill in Email virtual input with your email.

19. Click custom button.

20. Following email will be sent to you.

0 Comments

Add your comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.