The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group
Compare field with a value
Ref:
Instead of comparing two field together using the above, I would like to compare it with a value. Using the above example, value in [391] is Silver.
so I changed it to
but it didnt work.thx for any help
February 11, 2019 at 10:56 am
Your code didn't post. Please tag it as code so we can see what you're talking about.
February 11, 2019 at 5:14 pm
opps sorry.
[frm-condition source=frm-field-value field_id=391 entry=[id] equals="[390]"]your content here[/frm-condition]
Instead of comparing two field together using the above, I would like to compare it with a value. Using the above example, value in [391] is Silver.
so I changed it to
[frm-condition source=frm-field-value field_id=391 entry=[id] equals="Silver"]your content here[/frm-condition]
but it didnt work.thx for any help
February 12, 2019 at 12:33 am
When comparing against a fixed value, why wouldn't you just use IF instead of frm-condition?
[if 391 equals="Silver"]Conditional text here[/if 391]
February 12, 2019 at 7:40 am
yeah. that was my first option, but IF doesn't work on a page.
February 12, 2019 at 7:53 am
You didn't mention that this is on a page. I assumed a view. But since it's on a page, where is the entry id coming from? The [id] shortcode won't work on a page since a page without an entry doesn't have an ID.
February 19, 2019 at 12:19 am
Thankx for the reply Victor, Since it won't work on a page I've use a Javascript solution.
Discussion closed.