I’ve setup some conditions with the code below.
Works smooth. But this is my problem:
When you click on the 2nd radio button Coaching and choose a “travel” subject you get a text box. When you click now on for example the first checkbox: “Let’s have a talk” you get two textboxes. It seems that the text box from a Travel from a 2nd level don’t switch and stay. (Its a part of the group fro m Coaching). Must I setup a if else condition to let this text box disappear when you click on a other checkbox?
Code:
<label> Name
[text* your-name placeholder "Your full name"]</label>
<label> Telephone
[tel* your-phone placeholder "06 987 654 32"]</label>
<label> Email
[email* your-email placeholder "[email protected]"]</label>
<hr>
<h5>Which of the following are you most interested in</h5>
[radio product-options use_label_element default:0 "Let's have a talk" "Coaching" "Yoga" "Meditation"]
<hr>
[group coaching]
<H5>Choose your travel</H5>
[radio extra-coaching-options use_label_element default:0 "Need a boost - € 85,- per session" "Go for a change - € 80,- per session" "The full journey - € 75,- per session"]
[/group]
[group coaching-1]
<h5>Extra additional information</h5>
<p>Extra information you want to tell:</p>
[textarea textarea-899 placeholder "Type here"]
[/group]
[/group]
[group talk]
<h5>Additional information</h5>
<p>Extra information you want to tell:</p>
[textarea textarea-896 placeholder "Type here"]
[/group]
[group yoga]
<h5>Some questions</h5>
<p>What are you interested in getting out of coaching, yoga or meditation?</p>
[textarea textarea-897 placeholder "Type here"]
[/group]
[group meditation]
<h5>Some questions</h5>
<p>What are you interested in getting out of coaching, yoga or meditation?</p>
[textarea textarea-898 placeholder "Type here"]
[/group]
[submit class:btn-verzenden placeholder "Let's talk"]
Many thanks!
]]>(function(){
if(fieldname19>=1&&fieldname19<=1.1) {
return fieldname 35;
}
else if(fieldname19>1.1&&fieldname19<=1.2) {
return fieldname 36;
} else if(fieldname19>1.2&&fieldname19<=1.3) {
return fieldname 37;
} else if(fieldname19>1.3&&fieldname19<=1.4) {
return fieldname 38;
} else if(fieldname19>1.4&&fieldname19<=1.5) {
return fieldname 39;
} else if(fieldname19>1.5&&fieldname19<=1.75) {
return fieldname 40;
} else if(fieldname19>1.75&&fieldname19<=2) {
return fieldname 41;
}
})()
I used this code, didn’t work so I modified and used
(function(){
if(fieldname19>=1&&fieldname19<=1.1)
return
fieldname 28;
if(fieldname19>1.1&&fieldname19<=1.2) return
fieldname 29;
if(fieldname19>1.2&&fieldname19<=1.3) return
fieldname 30;
if(fieldname19>1.3&&fieldname19<=1.4) return
fieldname 31;
if(fieldname19>1.4&&fieldname19<=1.5) return
fieldname 33;
if(fieldname19>1.5&&fieldname19<=1.75) return
fieldname 32;
if(fieldname19>1.75&&fieldname19<=2) return
fieldname 34;
})()
and this
(function(){
if(fieldname19<=1.1) {
return fieldname 35;
}
else if(fieldname19<=1.2) {
return fieldname 36;
} else if(fieldname19<=1.3) {
return fieldname 37;
} else if(fieldname19<=1.4) {
return fieldname 38;
} else if(fieldname19<=1.5) {
return fieldname 39;
} else if(fieldname19<=1.75) {
return fieldname 40;
} else {
return fieldname 41;
}
})()
(function(){
if(fieldname19>=1&&fieldname19<=1.1) {
fieldname185 == fieldname 35;
}
else if(fieldname19>1.1&&fieldname19<=1.2) {
fieldname185 == fieldname 36;
} else if(fieldname19>1.2&&fieldname19<=1.3) {
fieldname185 == fieldname 37;
} else if(fieldname19>1.3&&fieldname19<=1.4) {
fieldname185 == fieldname 38;
} else if(fieldname19>1.4&&fieldname19<=1.5) {
fieldname185 == fieldname 39;
} else if(fieldname19>1.5&&fieldname19<=1.75) {
fieldname185 == fieldname 40;
} else if(fieldname19>1.75&&fieldname19<=2) {
fieldname185 == fieldname 41;
}
})()
(function() {
if(fieldname19>=1&&fieldname19<=1.1) {
return fieldname185 == fieldname 35;
}
else if(fieldname19>1.1&&fieldname19<=1.2) {
return fieldname185 == fieldname 36;
} else if(fieldname19>1.2&&fieldname19<=1.3) {
return fieldname185 == fieldname 37;
} else if(fieldname19>1.3&&fieldname19<=1.4) {
return fieldname185 == fieldname 38;
} else if(fieldname19>1.4&&fieldname19<=1.5) {
return fieldname185 == fieldname 39;
} else if(fieldname19>1.5&&fieldname19<=1.75) {
return fieldname185 == fieldname 40;
} else if(fieldname19>1.75&&fieldname19<=2) {
return fieldname185 == fieldname 41;
}
})()
and a few others but none worked, maybe I’m using the wrong syntax?
Actually, I had used these conditions in “Define Dependencies”, it successfully showed the result, but the displayed result can’t be used for further calculation, so I had to use “set equation”, please help me out with any of these!
]]>My value is sale price (promotional price) is .00
when it is .00 I want to leave empty sale price
I tried this
[IF({promopricec[1][.=”.00″]})][ELSE]{promopricec[1]}[ENDIF]
if there is promo price its ok its worked
but when it hasnt, it shows 0.00 at product sale price
What is the problem at the code? Thanks
]]><?php elseif ($userInfo->country->isoCode == ‘US’) { ?>
how can i use STATES with country code or directly with state, there is CONTINENT->CODE == that i reached however for states, i didn’t. i just want to add
->country->isocode ==’us’ && “”state->code”” ==’texas’) for example
is there anyone to tried it? i didn’t find any documentation about it
]]>Thanks for your great plugin. i just want to link text
<?php $hero=get_field(‘model_details’);?>
Model Color: <?php echo $hero[‘model_color’]?>
Model Code: <?php echo $hero[‘model_code’];?><br>
this is my code and i wanna link the text if model_color is equal to x or y.
is this possible? Thanx
]]>[if active]
<div class="home-container">
<h2 style="display:inline-block">{@post_title}</h2> - <h4 style="display:inline-block; color:#B74D5B">{@home_category}</h4>
{@post_thumbnail.large}
{@post_content}
<p>Posted: {@post_date, post_date}</p>
</div>
[else]
<h3>No homes available</h3>
[/if]
So this will check if the post has a custom field named active set to true and if so display the post. But if it does not then show the message ‘no homes available’.
Problem is, the message is being outputted one time per post. Here is the URL: https://towneplacehoa.com/sales-and-rentals/
What am I doing wrong here. Any help is appreciated. Thanks for your help!
]]>