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

Question

Question

Bringing over a javascript table

asked on February 21, 2020 Show version history

I am creating a dynamic per-diem table (using jquery and javascript) which is based on start and end dates of travel.  The table has dates as the header row, and checkboxes underneath each date for Breakfast, Lunch, and Dinner, which are checked off based on the event being attended.  The table also has daily totals, and a final totals that are all calculated in javascript in real time, based on what is checked off.  

I have two forms that have this per-diem table in my business process which gather signatures, one from the office supervisor (who fills out the table described above), and another to gather the department head signature.

During my testing of the form, I couldn't find a way to copy the selected and calculated values in the table that the office supervisor fills out, so that I can transfer those values over to the department head approval form.

Will try any idea.

Purvi

 

 

0 0

Replies

replied on February 22, 2020

After putting the values into the table using JS, did you use a .trigger.change command. I find that at times you have to do this so forms recognizes the change has been made to the form

0 0
replied on February 24, 2020

I added the trigger.change command, but how would I grab those changes, and be able to put them onto the second form?

0 0
replied on February 25, 2020

Is it the same table (Variable) that appears on the second form, or a different table that you want to have the value from the first table?

0 0
replied on February 27, 2020

Hi Steve, I actually thought of another solution.  I found that I can just use javascript to copy the HTML associated with the javascript generated table, and use hidden variables to use it on the other form.  Since it was a table with checkboxes, I had to play around with the page to see I could grab the values of the checkboxes, and they seem to work.

Thank you for your suggestions

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

Sign in to reply to this post.