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

Question

Question

Within a process how to duplicate fields and scripts of FormA to FormB?

asked on January 14, 2016

The process is as below:

User1 fills FormA --> Submits

User2 reviews/edits Form B --> Submits

 

FormB is nothing but exactly same as FormA with additional fields. 

 

E.g. FormA

Week Start Date: 11/01/2016

Monday: 11/01/2016 <script>

Tuesday: 12/01/2016 <script>

Wednesday: 13/01/2016 <script>

Thursday: 14/01/2016 <script>

Friday: 15/01/2016 <script>

Saturday: 16/01/2016 <script>

Sunday: 17/01/2016 <script>

The logic here is based on Week Start Date selection, dates for entire week should popup automatically.

 

FormB: 

Values from FormA are passed on to FormB. We have managed to do this using "Variables".

The fields and logic remain the same, but user in FormB can edit this values e.g. changes week start date to 04/01/2016 instead. Then the scripts are failing as the field ID have changed in FormB.

 

So how can we duplicate fields & scripts of FormA to create FormB with some additional fields specific to FormB?

Please Note: We have around 30 fields in the form with some complex calculations and logic. Using "class" doesn't seem to be a good option as we have found it work in few cases and doesn't in few cases.

 

I would appreciate any suggestions or work around on achieving this? I am happy to share more information in case required for better understanding.

 

Thank You

Dhruv Shah

0 0

Replies

replied on January 15, 2016

Hi there,

You can copy the FormA.

1 0
replied on January 15, 2016

Hi Dhruv, 

 

I would have said to use classes. You said classes haven't always worked though. Are your able to present an example when classes have failed?  I'm interested to see if it's an LF bug, working-as-designed or a bug in your code. 

 

Benjamin 

0 0
replied on January 18, 2016

Hi Benjamin,

We were able to achieve the needed. Thank you for the help extended.

We have created a new post for the classes issue that we are facing. Please find the link below:

https://answers.laserfiche.com/questions/89929/How-to-use-Loop-for-Dropdown-field-for-all-
rows-in-a-table-using-classes

 

Thanks in advance.

Regards,

Rajesh

 

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

Sign in to reply to this post.