> [frm-condition source=frm-math content="[270]" less_than=90
> greater_than=74][insert page='recommendation-yellow'
> display='content'] [/frm-condition]
What I need to do (logically) is say: if [age] greater_than=30 less_than=41 then evaluate these 3 criteria. In non-working pusdo code this:
if [age] greater_than=29 less_than=40 is 'true' then evaluate the following
if [current] l.t. [target * 2 ] [insert-page='red']
if [current] g.t. [target * 2 ] l.t. [target * 6] [insert-page='yellow']
if [current] g.t. [target * 6 ] [insert-page='green']
Then execute this same logic for the next age group 40's, 50's, and 60+. I can write this function in php in about 10 minutes. But I'm not WordPress smart enough to know where to put it so it works with my view, how to get to the data, set it up to run. I could not find a hook in Formidable that - based on the docs - looked like the right place to put this. If someone can point me toward some focused learning and give me some examples that would be great.Hi Victor - thanks for the suggestion - looks good on first read. I'll give it a go today and report back.
Hi Victor - Thanks for the help. That worked out well (you probably knew that). After reviewing the material about a custom shortcodes, I decided to use a custom plugin as a container rather than working in functions.php. I had previously tried a child theme to host my customization, but that came with a long list of other problems so the plug-in looked straight forward and it was.
Please login or Register to submit your answer