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

Question

Question

Repository URL Lookups within Collection (New Form Designer)

asked on March 24

Hello, I have a customer wanting to populate entry ID values into a repository URL using a lookup that is also contained within a collection.  I have done this before using JS but it was on the old designer and it doesn't look like it will work the same on the new designer.

Has anyone solved this problem already and can send me the JavaScript?  I can also paste the JS I've used in the past if someone can help me tweak it for use with the new Forms Designer.

0 0

Replies

replied on March 24

You need to:

  1. Subscribe to changes on the entry ID field (LFForm.onFieldChange)
  2. Change the HTML on change to contain the new entry ID (LFForm.changeFieldSettings)

https://doc.laserfiche.com/laserfiche/en-us/Content/Resources/BusinessProcesses/Javascript-and-CSS/TheLFFormObject.htm?Highlight=lfform

 

This post may be able to provide some guidance.
https://answers.laserfiche.com/questions/207760/LFForm-object-subscribe-to-tablecollection-changes

1 0
replied on March 27

Thanks I passed this onto the customer so we'll see if they are able to piece it all together.

0 0
replied on March 27

Great! As long as the table isn't super long you won't have any performance issues. If it is long let me know I have a more involved workaround and its on my active list to address this use case.

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

Sign in to reply to this post.