• Resolved blue

    (@life2)


    Hi,

    I’m trying to apply the following code for custom dependency but it causes the radio buttons to be unchangable:

    (function(){
    if(fieldname5 == 1) IGNOREFIELD(fieldname6|n); else ACTIVATEFIELD(fieldname6|n);
    })()

    Please advice on how to fix this.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author CodePeople2

    (@codepeople2)

    Hello @life2

    I don’t know what you mean by “radio buttons to be unchangable”. But when you make a field ignored, it is excluded from the form submission and ignored by the equations.

    What do you want exactly?

    Best regards.

    Thread Starter blue

    (@life2)

    Okay, no problem, there was actually an issue with the field and I have resolved it. Another question, how do I combine these OR statements?

    if( OR(fieldname1 == 1, fieldname1 == 2, fieldname1 == 3, fieldname1 == 4) )
    Plugin Author CodePeople2

    (@codepeople2)

    Hello @life2

    You can use the method in your entry:

    if( OR(fieldname1 == 1, fieldname1 == 2, fieldname1 == 3, fieldname1 == 4) )

    or the IN operation:

    if( IN(fieldname1, [1,2,3,4]) )

    Best regards.

    Thread Starter blue

    (@life2)

    Okay, what about the opposite of IN (not equal to)?

    Plugin Author CodePeople2

    (@codepeople2)

    Hello @life2

    You can use the NOT operation:

    if( NOT(IN(fieldname1, [1,2,3,4])) )

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Custom dependency rules’ is closed to new replies.