Different email response based on...

User 187934 Photo


Senior Advisor
19,668 posts
Online Now

The first thing to find out is what you want to have available? You showed me a form with 3 options and that's what I built it for. That is now wasted time. The way you have it setup with those options not actually being courses seems to setup your form up for failure and people confused if they choose wrong. You can make a drop down with categories. Then you make drop downs for each of those categories that contains the proper content. This would allow you to show multiple drop downs with conditions if you want that ability. That's what you need to figure out. What do you want to have available to the user? It won't be that bad once this is clear. The conditionals will make dropdowns required when they are shown if that's what you want.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2942998 Photo


Registered User
74 posts

My apologies, the Presentation form was an example of what I was attempting and I again apologize for consuming your time, you have been very gracious and generous with your time and assistance.

I think you make a good point on more clearly defining my requirements, so I will focus on finalizing the flow prior to my taking up anymore of your time.

Again, I do greatly appreciate everything you have contributed, and the scripts. I have learned quite a lot.

User 187934 Photo


Senior Advisor
19,668 posts
Online Now

No problem. Rethink your flow so your users choose what they need and you collect the data in a way that makes sense. The required scripts will be easier with the multiple drop down setup. Have you used the conditionals before?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 187934 Photo


Senior Advisor
19,668 posts
Online Now

Here's how conditionals can work.
https://ericrohloff.com/coffeecup/ccfor … dropdowns/
Here's my fb file.
https://ericrohloff.com/coffeecup/ccfor … pdowns.zip
There's no scripts to send links. Just wanted to show you what I was thinking.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2942998 Photo


Registered User
74 posts

Eric Rohloff wrote:
Here's how conditionals can work.
https://ericrohloff.com/coffeecup/ccfor … dropdowns/
Here's my fb file.
https://ericrohloff.com/coffeecup/ccfor … pdowns.zip
There's no scripts to send links. Just wanted to show you what I was thinking.


This makes sense. I am familiar with the concept of conditionals, just not the implementation, looking at FB now and think I have it figured out and will work on updating the current form (The FB zip is 404).

The ultimate goal is that the user selects the course outline they are interested in, fills out the form and receives a confirmation email with a download link.

User 187934 Photo


Senior Advisor
19,668 posts
Online Now

Try the link now.
https://ericrohloff.com/coffeecup/ccfor … pdowns.zip
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2942998 Photo


Registered User
74 posts

Eric Rohloff wrote:
Try the link now.
https://ericrohloff.com/coffeecup/ccfor … pdowns.zip


Yep, that worked. Almost done rebuilding the form with the conditionals.
User 2942998 Photo


Registered User
74 posts

Ok...I have the conditionals set for now (thinking on the multiple) https://vantekconsulting.net/outline_v2.html

You mentioned "There's no scripts to send links"? This would be great, the question is how? I'm not seeing where if a user selects Fiber Courses > ETA OSP Certification it will email a link to the pdf file.
User 187934 Photo


Senior Advisor
19,668 posts
Online Now

Looks good Keith. It's a lot cleaner. Give me a bit to do an example so you can see how to setup each choice.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 187934 Photo


Senior Advisor
19,668 posts
Online Now

Here's ver 1.
this is all based on the form you posted.
Add a text input to your form and name it Outline_Choice
Add a HTML Element to the bottom of your form and paste the code below into it.
Read the comments in the code for instructions on what to alter.
Only add more lines of links to match your dropdowns. I only did 6. So if you add more to the Fiber drop down number 7 would be like this.
var fiber_course7 = "https://mydomain.com/whatever/whatever.pdf";
The var naming has to be in order to match the number of options.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script>// ver 1
var jQ = $.noConflict(true);
jQ(document).ready(function(){

jQ('input[name="Outline_Choice"]').prop('readonly','true');
// Uncomment the line below after testing code
// jQ('input[name*="Outline_Choice"]').parent().parent('[id^="item"]').css('display','none');
jQ('select[name="category"],select[name*="outlines"]').on('change', function() {
jQ('input[name="Outline_Choice').val('');
});
jQ('select[name*="outlines"]').on('change', function() {
jQ('input[name="Outline_Choice').val('');
var cat_choice = jQ('select[name="category"]').val();
var outline_index = jQ('select[name*="outlines"]:visible').prop('selectedIndex');
var outline_name = jQ('select[name*="outlines"]:visible option:selected').val();
if(cat_choice == 'Fiber optic Testing and Splicing Courses' && outline_index > 0 && outline_name !=''){
//Add and alter the link to match your fiber pdf locations
var fiber_course1 = "https://mydomain.com/fiberoutlines/fiberoutline1.pdf";
var fiber_course2 = "https://mydomain.com/fiberoutlines/fiberoutline2.pdf";
var fiber_course3 = "https://mydomain.com/fiberoutlines/fiberoutline3.pdf";
var fiber_course4 = "https://mydomain.com/fiberoutlines/fiberoutline4.pdf";
var fiber_course5 = "https://mydomain.com/fiberoutlines/fiberoutline5.pdf";
var fiber_course6 = "https://mydomain.com/fiberoutlines/fiberoutline6.pdf";

jQ('input[name="Outline_Choice').val('<a href="'+eval('fiber_course'+outline_index)+'">'+outline_name+'</a>');
}
else if(cat_choice == 'OSP Copper & xDSL' && outline_index > 0 && outline_name !=''){
//Add and alter the link to match your copper pdf locations
var copper_course1 = "https://mydomain.com/copperoutlines/copperoutline1.pdf";
var copper_course2 = "https://mydomain.com/copperoutlines/copperoutline2.pdf";
var copper_course3 = "https://mydomain.com/copperoutlines/copperoutline3.pdf";
var copper_course4 = "https://mydomain.com/copperoutlines/copperoutline4.pdf";
var copper_course5 = "https://mydomain.com/copperoutlines/copperoutline5.pdf";
var copper_course6 = "https://mydomain.com/copperoutlines/copperoutline6.pdf";

jQ('input[name="Outline_Choice').val('<a href="'+eval('copper_course'+outline_index)+'">'+outline_name+'</a>');
}
else if(cat_choice == 'Wi-Fi & Networking' && outline_index > 0 && outline_name !=''){
//Add and alter the link to match your wifi pdf locations
var wifi_course1 = "https://mydomain.com/wifioutlines/wifioutline1.pdf";
var wifi_course2 = "https://mydomain.com/wifioutlines/wifioutline2.pdf";
var wifi_course3 = "https://mydomain.com/wifioutlines/wifioutline3.pdf";
var wifi_course4 = "https://mydomain.com/wifioutlines/wifioutline4.pdf";
var wifi_course5 = "https://mydomain.com/wifioutlines/wifioutline5.pdf";
var wifi_course6 = "https://mydomain.com/wifioutlines/wifioutline6.pdf";

jQ('input[name="Outline_Choice').val('<a href="'+eval('wifi_course'+outline_index)+'">'+outline_name+'</a>');
}

});
});</script>

Working here'
https://ericrohloff.com/coffeecup/ccfor … owns-ver2/
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.