No announcement yet.
  • Filter
  • Time
Clear All
new posts

    function On value Changed

    SmartClient Version: v12.1p_2020-05-04/Pro Deployment

    Good Afternoon Isomorphic,

    I've been looking around the forums to try and figure out how to make a function work on value changed of a drop down list.
    Here's what I tried but I'm having issues saying that it Cannot read property 'programChanged' of undefined. I feel like this is something that could be easily done. I was wondering if you might have input of how this might be done or where I'm going about wrong with this.

    I included pictures of the function I'm trying to call as well as the function. Any help is appreciated.

    Thank you,
    Attached Files

    changed() is firing in the context of a FormItem. Your applyCashForm AutoChild is the form that contains that FormItem - applyCashForm is what would have the creator reference.

    So you just want this.form.creator.programChanged().