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/