You are viewing limited content. For full access, please sign in.

Question

Question

Variable in my javaScript of CSS page didn't trick the event change when the varable was filled with lookup rule.

asked on October 6, 2014

Variable in my javaScript of CSS page didn't trick the event change when the varable was filled with lookup rule.

I 've never found this issue in LF Forms 9.1. It happened when I upgraded to LF Forms 9.2.

 

Here is the code; Output of PettCashLimit_after is blank;

 

$(document).ready(function () {
     

      $('.PettyCashLimit_before').change(function () {
        $('.PettyCashLimit_after input').val(10);
      });
})

 

and when I changed to ready event; Output of PettCashLimit_after is 10;

Here is the code;

 

$(document).ready(function () {
     

      $('.PettyCashLimit_before').ready(function () {
        $('.PettyCashLimit_after input').val(10);
      });
})

Default value of PettyCashLimit_before is 0. and Then It was filled in with Lookup rule which got data 1 row from a table.

How can I write javaScript to trick change event when It already got data from Lookup rule?

Are there anything change from Forms 9.1 in 9.2 about this ?

Please suggest.

Regards;

Bongkoch

 

0 0

Answer

APPROVED ANSWER
replied on October 6, 2014 Show version history

This may be related to some changes in Forms 9.2. A possible workaround would be to change

$('.PettyCashLimit_before').change(function () {

to

$('.PettyCashLimit_before').on('change lookup', function() {

See if that works for you. You can also refer to KB 1013538.

0 0

Replies

replied on October 6, 2014

Dear Alexander Huang

           Testing from your suggestion.Then it works! ,so surprise.

I will refer this bug ASAP.

Appreciate for your help.

Regards,

Bongkoch

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.