The website I am working on has a contact page that connects to a number of different persons (the current site exposes individual emails and telephone numbers). Is it possible, using the Perch forms addon to explicitly connect a separate email path for each individual? At the moment, I can provide unique ids for each email contact, but I can't separate these in the control panel section of the site in order to have each contact email directed to each contact. The documentation talks about using 'separate scripting' in connection with forms and adding 'action' to the form but I'm looking for advice on how best to create a contact page using the specific criteria I face. This is a church website with at least 12 individual contact emails and a desire to have each contact have it's own email contact form/action.
So just to understand things, you have one form, where the user can select the contact they want to send the submission to? You're looking to then send an email to the relevant contact based upon the users input?
Can you provide a step by step use case in how you need it to work and I'll do my best to help!
The original website has a contact page with this content:
which is to say: many different email contacts for each member of the organization. The question is: can I create a separate contact form for each of the individual members of organization which will then be receivable inside of their individual email accounts -- using the Perch contact form addon. I'm guessing, if this is at all possible, it is complicated.
You’d need to create unique form IDs for each different member. Then once one submission has been sent through, you could configure that form to send an email notification to the relevant contact in ‘Form Settings’.
I've created several forms for contacting each member of the client organization individually, including a 'tester' form. Every field id is unique and related to the contact form for the individual member. When I fill in the fields on the tester form, all the fields in all the other forms are also filled with exact same info. This would seem to indicate that creating forms with unique field ids is not the solution. The page can default back to replicate the current contact page on current site... but, if Perch CMS can handle this scenario as a group of contact forms, that would be preferable to our intent.
Any other ideas would be welcome... Thanks in advance.
Are the field IDs on the forms the same or are those what you're referring to as being unique?
They are unique. Here is a sample for one of the contacts. Action of form is difficult to understand and I'm still not sure about what I'm seeing. I don't know whether Perch is able to handle this type of query... multiple individual forms. Right now, I'm in a local development and can't really test the email forwarding setting. If this is something Perch should be able to handle, I'll try to place on the staging site but, currently behaviour is somewhat odd: multiple duplicate messages for each form. I don't know whether I'm missing something on how Perch handles contact querying...Code
- <perch:if exists="cntk_name_AfflComMinstr"><h5 class="cntk_name"><perch:content id="cntk_name_AfflComMinstr" type="smarttext" label="contact name" help="this is Contact's Name"/></h5>
- <perch:if exists="cntk_title_AfflComMinstr"><h5 class="cntk_title"><perch:content id="cntk_title_AfflComMinstr" type="smarttext" label="contact title" help="this is Contact's title"/></h5>
- <perch:if exists="telephone"><perch:content id="telephone_AfflComMinstr" class="tel" type="textarea" label="tel" markdown editor="simplemde" help="enter contact telephone alternative" /></perch:if>
- <h6><perch:content id="heading" type="text" label="Heading" required></h6>
- <perch:form id="form-contact_AfflComMinstr" class="contactfrm" method="post" app="perch_forms" role="form">
- <div class="input<perch:error for="name" type="required"> error</perch:error>">
- <perch:label for="name_AfflComMinstr">Your name:</perch:label>
- <perch:input id="name_AfflComMinstr" type="text" required label="Name">
- <perch:error for="name_AfflComMinstr" type="required">
- <p class="about-error">Please enter your name</p>
- <div class="input<perch:error for="email_AfflComMinstr" type="required"> error</perch:error><perch:error for="email" type="format"> error</perch:error>">
- <perch:label for="email_AfflComMinstr">Your email:</perch:label>
- <perch:input id="email_AfflComMinstr" type="email" required label="Email">
- <perch:error for="email_AfflComMinstr" type="required">
- <p class="about-error">Please enter your email address</p>
- <perch:error for="email_AfflComMinstr" type="format">
- <p class="about-error">Please enter a valid email address</p>
- <div class="input<perch:error for="message" type="required"> error</perch:error>">
- <perch:label for="message_AfflComMinstr">Your message:</perch:label>
- <perch:input id="message_AfflComMinstr" type="textarea" required label="Message">
- <perch:error for="message_AfflComMinstr" type="required">
- <p class="about-error">Please enter your message</p>
- <perch:input type="submit" class="e_submit" id="submit_AfflComMinstr" value="Send">
- <div class="alert success">
- <perch:content id="success_AfflComMinstr" class="thankuMsg" type="textarea" size="m" label="Thank you message" markdown editor="simplemde" required>
I don't know whether Perch is able to handle this type of query... multiple individual forms
Yes, Perch can handle multiple forms.
If you're not sure what's happening when you submit a form, you can turn on debug for the page and check the output.
okay. Thanks useful info. I'll continue to tweek and refine and will drop back in if further problems happen. Thanks for your help.
DEMO site does not seem to be working at the moment.
I'm trying to give a client an overview of Perch and, short of building out the entire interface, I need some information that they would find useful. I've tried searching online for reviews of Perch CMS and they aren't very numerous. I also am facing a lot of resistance from client org by individuals who think that Perch can't be a rigorous enough CMS because it doesn't have the street cred of Wordpress or Drupal. I hate code bloat and that's why I like Perch and the use-case here will probably be a blog-type application with facilitated commenting: but how to convince the lay user that Perch is able?
I hate code bloat and that's why I like Perch
Have you made a site with Perch before? If you try, you can make a bloated whale with Perch. Your frontend is up to you.
If you're looking for 5 star reviews of Perch, mid-way through asking for help on contact forms... that could be a red flag.
Or just build the demo site. Stay up late a few nights in a row. Just do it! Then you can write your own review of Perch.
If you want super-flexible form submission control, maybe use an external service such as JotForm, then embed on your site. These services are not always free, and come with some bloat and performance loss compared with native forms, but have handy form builders and conditional logic widgets and other cool features. They make it easy to send data on to other systems like google docs, zapier etc.
thanks for suggestions. Client is a charitable org. Paid services not an option. Me staying up late wouldn't have covered either, since I only had a few hours. Getting access to DEMO would sure be helpful in a rush. Always good to know about what is out there in the wild though.