• Resolved Mohsen

    (@msedighiyan86)


    Hello, I am trying to change the default selection of the dropdown field according to the result of another calculated field.

    I want users to be able to choose and change in addition to the system calculation. To identify the problem:

    Fieldname1 (calculated field) = there is a formula whose result is between 1 and 5.

    Fieldname2 (dropdown) = the list has five choices, including the numbers A, B, C, D, E with the values 1 to 5.

    When the result of fieldname1 is 4, in fieldname2, option D will be selected as default automatically.

    • This topic was modified 8 months, 1 week ago by Mohsen.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @msedighiyan86

    Thank you very much for using our plugin. I’ll try to describe the process with an hypothetical example.

    Assuming the current calculated field equation is fieldname123+fieldname456, and you want to select the fieldname2 choice whose value matches with the result of the mathematical operation.

    In this hypothetical case, you can edit the equation as follows:

    
    (function(){
    var result = fieldname123+fieldname456;
    getField(fieldname2|n).setVal(result);
    return result;
    }()

    Best regards.

    Thread Starter Mohsen

    (@msedighiyan86)

    Thank u so much

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change dropdown field selection according to calculated field’ is closed to new replies.