contact form, specific fields

3 replies·opened Sep 29, 2019
T
TDexSep 29, 2019

Hi guys!

I need to create my second form on my site. This form is a booking form with 5-6 specific field.
I maked the html code and i tried to send a test message. I received but just from first 4 default field.
I searched here is the forum the solution and i saw something with sendmail.php file setup but i didn't find any sendmail.php file, i just have form.php.
How can i configure the specified field in the email? What file i need to edit?

S
SemiColonWebSTAFFSep 29, 2019

Hello,

You do not need to change the PHP include/form.php File anymore. Everything is handled automatically. You can add unlimited number of Custom Form Fields in your Form. However, it is recommended that you follow the complete Documentation > Forms Section and make sure that your Form's Code Structure is according to the code structure documented there.

This should definitely fix your issue. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

T
TDexOct 1, 2019

Hi!

I tried to make from documentation but i can't get custom filed in email. Maybe if i paste here the code, can you explain a little bit more?

<!-- Postcontent
					============================================= -->
					<div class="postcontent nobottommargin">

						<h3>Send us an Email</h3>

						<div class="form-widget">

							<div class="form-result"></div>

							<form class="nobottommargin" id="template-contactform" name="template-contactform" action="include/form2.php" method="post">

								<div class="form-process"></div>

								<div class="col_one_third">
									<label for="template-contactform-name">Name <small>*</small></label>
									<input type="text" id="template-contactform-name" name="template-contactform-name" value="" class="sm-form-control required" />
								</div>

								<div class="col_one_third">
									<label for="template-contactform-email">Email <small>*</small></label>
									<input type="email" id="template-contactform-email" name="template-contactform-email" value="" class="required email sm-form-control" />
								</div>

								<div class="col_one_third col_last">
									<label for="template-contactform-phone">Phone</label>
									<input type="text" id="template-contactform-phone" name="template-contactform-phone" value="" class="sm-form-control" />
								</div>

								<div class="clear"></div>

								<div class="col_two_third">
									<label for="template-contactform-subject">Subject <small>*</small></label>
									<input type="text" id="template-contactform-subject" name="subject" value="" class="required sm-form-control" />
								</div>

								<div class="col_one_third col_last">
									<label for="template-contactform-service">Services</label>
									<select id="template-contactform-service" name="template-contactform-service" class="sm-form-control">
										<option value="">-- Select One --</option>
										<option value="Wordpress">Wordpress</option>
										<option value="PHP / MySQL">PHP / MySQL</option>
										<option value="HTML5 / CSS3">HTML5 / CSS3</option>
										<option value="Graphic Design">Graphic Design</option>
									</select>
								</div>
								<div class="col-12 form-group">
									<label for="template-contactform-name">Custom <small>*</small></label>
									<input type="text" id="template-contactform-name" name="template-contactform-name" value="" class="form-control required" />
								</div>
								<div class="clear"></div>

								<div class="col_full">
									<label for="template-contactform-message">Message <small>*</small></label>
									<textarea class="required sm-form-control" id="template-contactform-message" name="template-contactform-message" rows="6" cols="30"></textarea>
								</div>

								<div class="col_full hidden">
									<input type="text" id="template-contactform-botcheck" name="template-contactform-botcheck" value="" class="sm-form-control" />
								</div>

								<div class="col_full">
									<button class="button button-3d nomargin" type="submit" id="template-contactform-submit" name="template-contactform-submit" value="submit">Send Message</button>
								</div>

								<input type="hidden" name="prefix" value="template-contactform-">

							</form>
						</div>

					</div><!-- .postcontent end -->
T
TDexOct 1, 2019

Okay, i solved! :)
Thanks. :)

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard