• Resolved oldbravos10

    (@oldbravos10)


    Hi,
    I want to display a simple text depending on calculation result ex:
    if feild 1=feild 2 return feild 10 (is simple text A) (background-textarea -green color)
    if feild 1=feild 3 return feild 11 (is simple text B) (background-textarea -green color)
    ….
    And all the feilds (text A, text B,.. ) must be hidden by default.
    Can you help?
    Thank you

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

    (@codepeople)

    Hello @oldbravos10

    Your question was answered yesterday in the following support thread: Color on unciot

    Best regards.

    Thread Starter oldbravos10

    (@oldbravos10)

    About color, ok thank you, but my example :
    if feild 1=feild 2 return feild 10 (show text which is hidden by default) not a number
    Thank you

    Thread Starter oldbravos10

    (@oldbravos10)

    Is it possible :

    (function(){
    if( fieldname1 = fieldname2) return fieldname10;
    else return fieldname12;
    })()

    Plugin Author codepeople

    (@codepeople)

    Hello @oldbravos10

    The issue in your equation is caused by the equality operator. In javascript the comparison operator for equality is the double sign == because the sign = is used for assignment. So, the correct equation would be:

    
    (function(){
    if( fieldname1 == fieldname2) return fieldname10;
    else return fieldname12;
    })()
    

    Best regards.

    Thread Starter oldbravos10

    (@oldbravos10)

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide and Show Fields (text input) based on result’ is closed to new replies.