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

Question

Question

Is There an LFForm option to Trigger When Row/Set is Added/Deleted from a Table/Collection?

asked on April 23

Forms Version 11.0.2311.50556

I've been trying to find the best way to trigger some Javascript when a user adds/deletes rows/sets in a table/collection.

I'm not finding anything in the help documentation for the LFForm object, and I haven't been able to figure anything out on my own using the onFieldChange or onFieldBlur functions.

Is this currently possible?  Is anyone familiar with how to do it?

0 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on April 24

I got a solution for this from LF - looks like it's a function they're looking to add to the LFForm object, but as of right now basically what you add a hidden field with a formula that basically counts the number of rows and watch that field rather than the table and run your code from there.

Here's the link to the post with more details: https://answers.laserfiche.com/questions/221188/Is-there-a-way-to-use-listen-for-table-row-deletions-with-the-LFForm-object

2 0
replied on April 24

That is a better work around than I was using.  Thanks!

0 0
replied on April 24

Not me about to answer and say no there is not but then you posted a solution that I wrote 😅

3 0

Replies

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

Sign in to reply to this post.