asked on September 18, 2023

Hello Laserfiche-heads,

I'm not the best in the world at jquery, so always have a bit of trouble when I need to do things that require that. Anyway this is my issue.

I have an edit form where the user can create/edit/delete to/from a lookup table. At the bottom of this edit page is a table that shows all the current rows and their values (4 values per row). 

After they perform their edit, they can choose whether to quit or continue editing. If they continue, I route the workflow back to the edit form. The problem seems to be that as the form has already been rendered before, it doesn't re-execute the lookup rules which populate the table. Therefore the table values are out-of-date, even though the lookup has been updated just fine.

I've read other posts and tried adding jquery like this on the edit form to trigger a change

-----------------------------------
$(document).on('ready', function() {

  // Refresh data
$('.userAccount input').change();

});

and I've also tried to run it triggering a change event for the table control, and the table fields within it, but nothing seems to work (see attached image).

I don't know whether I need the .change(); statements inside a function, or just standalone. I tried both but no luck.

Wish I was better at jquery but until then I hope someone can guide me. 

ss1.png
ss2.png
ss1.png (55.81 KB)
ss2.png (67.65 KB)
0 0