1
0
-1

Greetings all,


Ajax Cascade option (Dynamic Cascading Drop-Down List) unable to retrive the value holds inside a text field where the value of the text field is being set by Javascript (Javascript API).


For example: 

<script>

$('#textField1').val('I want to retreive this');

</script>


Field Id to Control Available Options Based on Grouping: textField1

I'm using List selection (JDBC) for this AJAX calling where ( ? ) doesn't retrieve anything from textField1.

Both works fine individually but not working when intergrated togather.


Any help will be much appreciated.

    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      Try to use 

      FormUtil.getField("textField1").val("aaa");

      instead of the original code that you have.

      Then, follow up with.

      FormUtil.getField("textField1").trigger("change");

      So that the cascading code will trigger.

      1. Please help me

        It worked! Thank you so much

      CommentAdd your comment...