Using frm-math inside a conditional in a View

By: Steven C | Asked: 08/26/2022
ForumsCategory: General questionsUsing frm-math inside a conditional in a View
Steven C asked 2 years ago

I have the following frm-math inside a view:

[frm-math]((([155] - (([frm-days-diff start="[161]"] * [154]) + [154])) / [154])) - [166][/frm-math]

I get the correct result that I need.

Now inside that same view: How would I conditionally display content if a form field value is less_than the result of the above frm-math?

I tried using the conditionals like so:

[if 166 less_than="[frm-math]((([155] - (([frm-days-diff start="[161]"] * [154]) + [154])) / [154])) - [166][/frm-math]"]Conditional content here[/if 166]

That is not accepted. Is there another way to perform this?

[Never mind, Ok I see this type of thing can be achieved once the frm-math result is placed in a param]

1 Answers
Steven C answered 2 years ago
  [Never mind, Ok I see this type of thing can be achieved once the frm-math result is placed in a param]

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right