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

Slack Signup
Newsletter Optin
Help Desk

Compare field with a value

Labels

This Discussion is public

Notifications

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

Your code didn't post. Please tag it as code so we can see what you're talking about.

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

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]

yeah. that was my first option, but  IF  doesn't work on a page.

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.

Thankx for the reply Victor, Since  it won't work on a page  I've use a Javascript solution.

Discussion closed.