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

Question

Question

How to delete field values from previously submitted form?

asked on June 28, 2024

Hello,

I am trying to clear or delete the old data submitted from a previous form in this business process. I am currently using this JS but it is not working. I am new to JS and would like some help. 

 

LFForm.deleteSet({Please_type_the_Entry_ID_s__that_you_would_like_to_be_update__: "Update_Table"}, 0, 1, 2);

 

The reason I would like to clear this data from the table is because I am using a workflow to update documents in my repository. If I do not clear the data the entry's will be ran multiple times when that is not needed. They only need to be updated once during the forms process and the user can submit the process many times. I have it in a loop so they can update the documents as they go. Thank you

 

In above screen shot I wanted to update entry Id's 109010, and 44598, the first time I submitted the form. They were also ran again when I submitted the form the second time with Entry Id's 45162, and 45163. 

0 0

Replies

replied on January 10

A simple solution would be to have your workflow add a tag to the entry to indicate it has already been processed, and have your workflow skip processing if the entry already has that tag.

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

Sign in to reply to this post.