• Resolved kcap24

    (@kcap24)


    Field 1 – number

    Field 2 – number

    Field 3 – Calculation from 1&2

    Field 4 – Radio buttons

    Field 5 – Radio buttons

    I want the calculation in Field 4 to only show if Field 3 < 28 but right now it is showing at default.

    Field 3 dependencies that I have set:

    If less than 28 show Field 4

    If greater or equal to 28 show field 5. This part is working.

    How do I get Field 4 to ONLY appear if Field 3 < 28?

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @kcap24

    Thank you very much for using our plugin.

    I’ll try to describe the process with a hypothetical example. Assuming the current equation is fieldname1+fieldname2, you can edit it as follows:

    
    (function(){
      var result = fieldname1+fieldname2;
      if(result < 28 ){ 
        ACTIVATEFIELD(fieldname4|n);
        IGNOREFIELD(fieldname5|n);
      } else {
        ACTIVATEFIELD(fieldname5|n);
        IGNOREFIELD(fieldname4|n);
      }
      return result;
    })()

    Learn more about the ACTIVATEFIELD and IGNOREFIELDS operations in the following section of the plugin documentation:

    https://cff.dwbooster.com/documentation#managing-fields-module

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Dependencies help’ is closed to new replies.