olufemishield
Forum Replies Created
-
@profusia thanks for this solution. I have been trying to achieve something similar though the options arent changing on my website.I have edited your code this way and pasted it in additional settings under CF7
<script language=”javascript” type=”text/javascript”> document.getElementById(“budget”).addEventListener(“change”, displayTextField); function displayTextField() { var Chosen = document.getElementById(“budget”).value; if (Chosen == “1 - 5 million”) { document.getElementById(“repfee”).value = “N25,000 (Twenty Five Thousand Naira)”; } else if (Chosen == “6 - 15 million”){ document.getElementById(“repfee”).value = “N50,000 (Fifty Thousand Naira)”; }else if (Chosen == “16 - 30 million”){ document.getElementById(“repfee”).value = “N100,000 (One Hundred Thousand Naira)”; }else if (Chosen == “31 - 70 million”){ document.getElementById(“repfee”).value = “N150,000 (One Hundred and Fifty Thousand Naira)”; }else if (Chosen == “71 - 100 million”){ document.getElementById(“repfee”).value = “N250,000 (Two Hundred and Fifty Thousand Naira)”; }else if (Chosen == “101 - 150 million”){ document.getElementById(“repfee”).value = “N350,000 (Three Hundred and Fifty Thousand Naira)”; }else if (Chosen == “151 - 250 million”){ document.getElementById(“repfee”).value = “N500,000 (Five Hundred Thousand Naira)”; }else if (Chosen == “251 - 500 million”){ document.getElementById(“repfee”).value = “N1,000,000 (One Million Naira)”; }else if (Chosen == “above 500 million”){ document.getElementById(“repfee”).value = “N2,000,000 (Two Million Naira)”; } } </script>I also added the following in the contact form but the text isn’t changing as expected
[dynamictext repfee id:repfee class:repfee “N25,000 (Twenty Five Thousand Naira)”]
Am I doing something wrong?
Looking out for this integration as well
Forum: Plugins
In reply to: [Send PDF for Contact Form 7] Leave out fields that are not filledHas anyone got a solution to this
Forum: Plugins
In reply to: [Contact Form 7] Javascript redirect on mail-sentThank you Takayuki. I used the id attribute “acquisition-type” as set in my form but it still didn’t redirect. I would appreciate further hints.
Forum: Plugins
In reply to: [Contact Form 7] Contact Form 7 Conditional redirect based on drop-down menu@sethat8vo kindly check my code below. It didn’t work. This is to be pasted under additional settings right?
—————————————————-document.addEventListener( ‘wpcf7submit’, function( event ) {
if ( ‘11914’ == event.detail.contactFormId ) {var lpLocation = document.getElementById(“lp-location”).value;
if (lpLocation == “0 – 2 years”) {
location = ‘https://houseofshield.com/shop/membership/apprentice-subscription/’;
} else if (lpLocation == “3 years and above”) {
location = ‘https://houseofshield.com/shop/membership/experienced-subscription/’;
}}
}, false )Forum: Plugins
In reply to: [Contact Form 7] Redirect specif form on sendI have a similar desire. I tried doing this and added it to the additional setting but it isn’t redirecting. What do you advice
—————————————————————–var wpcf7Elm = document.querySelector( ‘.wpcf7’ );
wpcf7Elm.addEventListener( ‘wpcf7submit’, function( event ) {
var Iso = $(“input[name=level]:checked”).val() ;
if(Iso = ‘0 – 2 years’ ) { location = ‘https://houseofshield.com/shop/membership/apprentice-subscription/’; }
else if(Iso = ‘3 years and above’ ) { location = ‘https://houseofshield.com/shop/membership/experienced-subscription/’; }
}, false );Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] Integration with contact form 7Ok fixed it. I didnt need the use_label_element in my case. I just needed to change the field name “country” to mc4wp-COUNTRY since I’m using MailChimp for wordpress Plugin; where “COUNTRY” is the tag name of the field in MailChimp.
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] Integration with contact form 7I read in the knowledge base that we have to use labels if we want to add additional fields to mailchimp but I also read that labels work differently in contact form 7 when using select field (drop down menu). I’m aware of the use_label_element instead of label but I still don’t have a clear picture of how to write that. I’ll appreciate a clear example.
For example if I creat a drown down thus:
[checkbox your-country use_label_element “China” “India” “San Marino”]How do I link this to mc4wp in order to have the choice saved in country field of my mailchimp list
- This reply was modified 8 years, 5 months ago by olufemishield.