Thanks for pointing this example Susan.
I really have a hard time wrapping my head around the snippet call.
This is how my current form works and the snippet call I made.
[+validationmessage+]
<form method="post" action="[~[*id*]~]" id="support-form">
<p><label for="requestType">Request Type*</label>
<select name="requestType" id="requestType" eform="Request Type::1">
<option value="1">General Inquiry</option>
<option value="2">Customer Support</option>
</select></p>
<p><label for="firstName">First Name*</label><input name="firstName" id="firstName" type="text" class="txt" eform="First Name:string:1" /></p>
<p><label for="lastName">Last Name*</label><input name="lastName" id="lastName" type="text" class="txt" eform="Last Name:string:1" /></p>
<p><label for="company">Company</label><input name="company" id="company" type="text" class="txt" /></p>
<p><label for="email">Email Address*</label><input name="email" id="email" type="text" class="txt" eform="Email Address:email:1" /></p>
<p><label for="phone1">Telephone*</label><input name="phone1" id="phone1" type="text" maxlength="3" class="txt-phone1" eform="Area Code::1::#REGEX /[0-9]{3}/" /> - <input name="phone2" id="phone2" type="text" maxlength="3" class="txt-phone2" eform="First 3 Telephone digits::1::#REGEX /[0-9]{3}/" /> - <input name="phone3" id="phone3" type="text" maxlength="4" class="txt-phone4" eform="Last 4 Telephone digits::1::#REGEX /[0-9]{4}/" /> ext. <input name="phone4" id="phone4" type="text" class="txt-phone4" /></p>
<p><label for="websiteUrl">Website URL</label><input name="websiteUrl" id="websiteUrl" type="text" class="txt" /></p>
<p><label for="product">Product*</label>
<select name="product" id="product" eform="Product::1">
<option value="Product 1">Product 1</option>
<option value="Product 2">Product 2</option>
<option value="Product 3">Product 3</option>
<option value="Product 4">Product 4</option>
<option value="Product 5">Product 5</option>
<option value="Product 6">Product 6</option>
</select></p>
<p><label for="comments">Comments</label><textarea name="comments" id="comments"></textarea></p>
<p><label> </label><input type="submit" value="Submit" /></p>
</form>
<p class="footnote">Required fields are denoted by (*).</p>
The Snippet Call
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[!eForm?
&formid=`support-form`
&subject=`Customer and Technical Support Form Submission`
&to=`
[email protected],
[email protected]`
&tpl=`support-form`
&report=`support-form-report`
&thankyou=`support-form-thankyou`
&mailselector=`requestType`!]
------ Form 1
> General Inquiry
[email protected]
> Customer Support
[email protected]
------ Form 2 (currently no email associated)
> Product 1
> Product 2
> Product 3
> Product 4
> Product 5
> Product 6
There are some change requests since I first posted to my form earlier.
Here’s how I need to have it modified:
-----
Dropdown 1
-----
> General Inquiry
[email protected]
> Customer Support
[email protected]
> Other
[email protected]
-----
Dropdown 2 (within same form)
-----
> Product 1
[email protected]
> Product 2
[email protected]
> Product 3
[email protected]
> Product 4
[email protected],
[email protected]
> Product 5
[email protected]
> Product 6
[email protected]
Could you please tell me how the snippet should be written at this point?