Data Display if/else conditonals showing all rules insted of single rule and other bugs...
Permalink Browser Info Environment
1) If I setup multiple rules, and use a series of "if/else" conditionals within a single containing div all conditionals will appear when I select the top most rule/condition.
1b) If I setup multiple rules, and use a series of "if/else" conditionals within separate containing divs all conditionals will appear when I select the bottom most rule/condition:
2) Also, the conditionals would not work with "is equal to" in the dataDisplay template. I had to use '"contains" even though "is equal to" was the only comparison available in the rules.
I spent about three hours testing and retesting various combinations today. And about an hour making the attached image and submitting the trouble ticket.
I'm supposed to have this form completed by Monday for my client.
<div class="bioSocialLinks"> <if name="Select Facebook" comparison="contains" value="Facebook"> <div class="bioDiv facebookLink"><field name="Facebook URL (do not include http:// - example:http://www.mysite.com)" placeholder="facebook" /><a href="http://{{facebook}}" target="_blank"></a></div> <else></else> </if> <if name="Select Twitter" comparison="contains" value="Twitter"> <div class="bioDiv twitterLink"><field name="Twitter URL (do not include http:// - example:http://www.mysite.com)" placeholder="twitter" /><a href="http://{{twitter}}" target="_blank"></a></div> <else></else> </if> <if name="Select LinkedIn" comparison="contains" value="LinkedIn"> <div class="bioDiv linkdinLink"><field name="LinkedIn URL (do not include http:// - example:http://www.mysite.com)" placeholder="linkedIn" /><a href="http://{{linkedIn}}" target="_blank"></a></div> <else></else> </if> <if name="Select Google+" comparison="contains" value="Google+"> <div class="bioDiv googlePlusLink"><field name="Google+ URL (do not include http:// - example:http://www.mysite.com)" placeholder="googlePlus" /><a href="http://{{googlePlus}}" target="_blank"></a></div>
Viewing 15 lines of 18 lines. View entire code block.
1b) If I setup multiple rules, and use a series of "if/else" conditionals within separate containing divs all conditionals will appear when I select the bottom most rule/condition:
<div class="bioSocialLinks"> <if name="Select Facebook" comparison="contains" value="Facebook"> <div class="bioDiv facebookLink"><field name="Facebook URL (do not include http:// - example:http://www.mysite.com)" placeholder="facebook" /><a href="http://{{facebook}}" target="_blank"></a></div> <else></else> </if> </div> <div class="bioSocialLinks"> <if name="Select Twitter" comparison="contains" value="Twitter"> <div class="bioDiv twitterLink"><field name="Twitter URL (do not include http:// - example:http://www.mysite.com)" placeholder="twitter" /><a href="http://{{twitter}}" target="_blank"></a></div> <else></else> </if> </div> <div class="bioSocialLinks"> <if name="Select LinkedIn" comparison="contains" value="LinkedIn"> <div class="bioDiv linkdinLink"><field name="LinkedIn URL (do not include http:// - example:http://www.mysite.com)" placeholder="linkedIn" /><a href="http://{{linkedIn}}" target="_blank"></a></div>
Viewing 15 lines of 24 lines. View entire code block.
2) Also, the conditionals would not work with "is equal to" in the dataDisplay template. I had to use '"contains" even though "is equal to" was the only comparison available in the rules.
I spent about three hours testing and retesting various combinations today. And about an hour making the attached image and submitting the trouble ticket.
I'm supposed to have this form completed by Monday for my client.
Type: | Discussion |
---|---|
Status: | In Progress |
Hmmmm...I wonder what your methodology is in choosing which support request to respond to. It seems somewhat arbitrary. I see you've responded to other requests since I posted this one. It's somewhat disheartening after my company has purchased your addon a few times (different c5 user accounts)...and also considering the amount of time invested/bled into trying to understand your add-on and to communicate with you.