PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Conditional logic based on total field from calculation

  1. twistystraws
    Member

    I'm trying to get an HTML field to display, conditionally on a calculated field totals (which are variable). The form collects figures and makes calculations, giving two totals. If total one is less than total two, I want one HTML field to show, if more than, then another HTML field.

    Is this possible? The conditional logic asks 'Enter a value' - is there a way to assign total two to be that value - how if so?

    Thanks

    Posted 11 years ago on Wednesday May 8, 2013 | Permalink
  2. twistystraws
    Member

    Anyone help with this? Cheers...

    Posted 11 years ago on Wednesday May 8, 2013 | Permalink
  3. 1. Create a new number field and set it to calculate and subtract the two fields.
    2. In the admin section of this new number field, add in your own custom css "form_hidden" and add:
    form_hidden{visibility:hidden !important; } to your style.css
    3. Set one of your html conditional logic to respond if new_number_field is greater to zero and set the other html conditional logic to be less than zero.

    Hope this helps.

    Posted 11 years ago on Wednesday May 8, 2013 | Permalink
  4. twistystraws
    Member

    Fabulous, that works like a charm. Thanks very much.

    Posted 11 years ago on Wednesday May 8, 2013 | Permalink