-
- 173 Posts
Basically, what I'm trying to do is if someone answers YES to the first question, powerdoorlocks, then the next question is hidden (that works)and the answers to all the additional section shows. At this point I'm only getting the second "If no, would you like to add it" question.
<p>Does your vehicle currently have power door locks? - [[+powerdoorlocks]]</p>
[[+powerdoorlocks:isequalto=`YES`:then=``:else=`<p>If no, would like to add? - [[+addpowerdoorlocks]]</p>`]]
[[+powerdoorlocks:isequalto=`NO`:then=``:else=`<p>Does your vehicle currently have keyless entry remote? - [[+keylessentry]]</p>
[[+keylessentry:isequalto=`YES`:then=``:else=`<p>If no, would like to add? - [[+addkeylessentry]]</p>`]]
[[+keylessentry:isequalto=`NO`:then=``:else=`<p>If yes, Is your keyless entry attached to your key? (All one piece) - [[+keylessattached]]</p>`]]
<p>Please check the following activations, which are now functioning, from your factory keyless entry remote:</p>
<p>Rear Hatch/Trunck Release - [[+acttrunkrelease:isequalto=`1`:then=`Yes`:else=`No`]]</p>
<p>1 or 2 Power Assisted Sliding Doors - [[+actslidingdoor:isequalto=`1`:then=`Yes`:else=`No`]]</p>
<p>Power assisted lift gate - [[+actliftgate:isequalto=`1`:then=`Yes`:else=`No`]]</p>
<p>Factory Security Alarm - [[+actalarm:isequalto=`1`:then=`Yes`:else=`No`]]</p>']]
Everything I know I learned on the internet. Saved me thousands in College tuition,
-
- 24,544 Posts
Have you checked to make sure all the placeholders are being set correctly with something like this:
Power Door Locks: [[+powerdoorlocks]]
Add Power Door Locks: [[+addpowerdoorlocks]]
Keyless Entry: [[+keylessentry]]
etc.
You probably know this, but the placeholders are case-sensitive, so YES is not the same as Yes or yes.
I would be inclined to do the whole thing with a custom snippet, which would be way faster.
-
- 173 Posts
Unfortunatly custom snippets are out my expertise.
I did check the case on everything which was right but I found a "`]]" out of place and that fixed it. Thanks for replying.
Everything I know I learned on the internet. Saved me thousands in College tuition,
You can improve the performance of output modifiers by applying Jason's mosquito swatting trick of having the tag as the result of the modifier instead of inside the modifier -
http://modx.com/blog/2012/09/14/tags-as-the-result-or-how-conditionals-are-like-mosquitoes/