• Resolved Bakhshi

    (@bakhshi)


    Hi

    I have two Dropdown field and i want to display the result in Calculated Field.

    for example:

    Dropdown field1 = (Value : 1000)
    Dropdown field2 = (Value : 2000)

    when Dropdown field2 is selected, Show 2000 in Calculated Field and conversely!

    thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Bakhshi

    (@bakhshi)

    I found it!

    (function(){
    if(Dropdown field1) return Dropdown field1;
    if(Dropdown field2) return Dropdown field2;
    })()

    Plugin Author codepeople

    (@codepeople)

    Hello @bakhshi

    I’m not sure about your description, because the DropDown fields have always an option selected, they are not radio buttons or checkbox fields, so, I guess you are referring to two choices in a same DropDown field. If it is the case, and the DropDown field is form example, the fieldname1, the equation associated to the calculated field would be simply the name of the DropDown field:

    
    fieldname1
    

    Best regards.

    Plugin Author codepeople

    (@codepeople)

    Hello @bakhshi

    Could you indicate the URL to the page where the form is inserted, and the fields you are referring, please?

    Best regards.

    Thread Starter Bakhshi

    (@bakhshi)

    Thank you
    I know I just wrote this for better understanding and otherwise the code is:

    (function(){
    if(fieldname1) return fieldname1;
    if(fieldname2) return fieldname2;
    })()

    it solved.
    thanks

    Plugin Author codepeople

    (@codepeople)

    Hello @bakhshi

    Thank you so much for letting me know you have found a solution.

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘display the result Dropdown field in Calculated Field’ is closed to new replies.