Hi there! I am using conditionals to show whether certain sections show up on a user page or not.
In this particular use case, users that subscribe are automatically logged in and then land on their ‘my account’ page. If this is their very first visit to that page, they should first create a secret password.
Once they do that (via gravity forms) they get a tag ‘has_set_password’ added in their activecampaign data. Once they have set their password, that gravity form should no longer appear on that page.
The page that I will link to in the private section below has the following shortcode for that conditional, to demonstrate that the logic for it is working properly:
[mbr_is_conditional id=‘3522’]
Condition 3522 (has tag ‘has_set_password’) is met: Your userdata has this tag, therefore, it renders ‘true’
[ELSE_is_conditional]
Condition 3522 (has tag ‘has_set_password’) is not met. Your userdata shows you do NOT have this tag, therefore it renders ‘false’
[/mbr_is_conditional]
I want to use the exact same conditional for the section, like so:
So… this section should only show up when the condition renders NOT true, i.e. false.
Interestingly, I can get this to work the way I want it to if I REVERSE the logic??? So when i want the section to appear when this conditional renders TRUE (like in this screenshot) above, when I set it the condition to false
So to demonstrate this, I have created another section exactly like it, but with the condition REVERSED (and a red background on the section, to show that it is the reversed one). There, the condition is set like so:
You can try this out via the link that I will share in the private note. I would recommend that you then set a password yourself. Because then you will land on the exact same page, but with the user data changed.