Forum Discussion

Kara's avatar
Kara
Creator I
7 years ago
Solved

Class Structure(Classification) Field onChange Event

Hi Everybody, I am want to write a code 'on Change" Event of Classification Property to set one of the drop down field value. I am not getting success to getProperty Value of Class Structure Prop...
  • cogres's avatar
    7 years ago

    Hi Kara,

    in the onChange method, you can use

    var classi = getFieldByName("classification").getElementsByTagName("input")[0].value;

    And then switch over classi to set the dropdown value depending on your business logic with

    window.handleItemChange("list_property", "value you want to set");

    Is this what you need?

    Cheers,

    C