# Simplifying form usage

**URL:** <https://community.hubspot.com/t/simplifying-form-usage/61807>\
**Category:** CMS Development\
**Tags:** forms\
**Created:** [July 27, 2022, 10:54am UTC](https://community.hubspot.com/t/simplifying-form-usage/61807 "2022-07-27T10:54:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben-duchy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ben-duchy/32/84083_2.png) [@ben-duchy](https://community.hubspot.com/u/ben-duchy)\
**Post date:** [July 27, 2022, 10:54am UTC](https://community.hubspot.com/t/simplifying-form-usage/61807/1 "2022-07-27T10:54:57Z")

</div>

Is it possible within a custom web module to show / hide info if a certain field within a form matches the contents of a custom field within the web module?

Currently when I select a form within the web module it displays set info (example below). How do I write an if condition based on the first name field which isn’t shown in the code?

```lia-code-sample
{% form
	form_to_use="{{ module.form_field.form_id }}"
	response_response_type="{{ module.form_field.response_type }}"
	response_message="{{ module.form_field.message }}"
	response_redirect_id="{{ module.form_field.redirect_id }}"
	response_redirect_url="{{module.form_field.redirect_url}}"
	gotowebinar_webinar_key="{{ module.form_field.gotowebinar_webinar_key }}"
%}

```

---

<div class="post-metadata">

**Author:** ![BarryGrennan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/barrygrennan/32/97794_2.png) [@BarryGrennan](https://community.hubspot.com/u/BarryGrennan)\
**Post date:** [July 27, 2022, 12:56pm UTC](https://community.hubspot.com/t/simplifying-form-usage/61807/2 "2022-07-27T12:56:51Z")

</div>

Hi Ben,

Depending on your account level you can natively use [dependent form fields](https://knowledge.hubspot.com/forms/use-dependent-form-fields)  
Failing that you’d likely need to use a javascript solution targeting the specific input by name and triggering something to show on change/keyup, etc.

---

<div class="post-metadata">

**Author:** ![ben-duchy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ben-duchy/32/84083_2.png) [@ben-duchy](https://community.hubspot.com/u/ben-duchy)\
**Post date:** [July 27, 2022, 1:43pm UTC](https://community.hubspot.com/t/simplifying-form-usage/61807/3 "2022-07-27T13:43:50Z")

</div>

Hi @BarryGrennan,

You’re right, JS / bespoke API will probably be required for my use case as I would like to go beyond my original example and potentially change the email it sends the answers to based on a custom object field. I’ll take a look, but I think the dependent form field will be too basic for my needs.

---

<div class="post-metadata">

**Author:** ![BarryGrennan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/barrygrennan/32/97794_2.png) [@BarryGrennan](https://community.hubspot.com/u/BarryGrennan)\
**Post date:** [July 27, 2022, 1:56pm UTC](https://community.hubspot.com/t/simplifying-form-usage/61807/4 "2022-07-27T13:56:31Z")

</div>

For the different emails part you could probably use [workflows](https://knowledge.hubspot.com/workflows/create-workflows) with the trigger being Form Submission and filter by contact property (again, depends on account level)
