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

Question

Question

Difficult Table Format.

asked on January 22, 2016

I am looking to have a table in one of my forms that has both read only information includede which I have input at the design stage of the form but also the person completing the form must be able to detail certain information.

 

See my image attached of the table currently in paper form looking to be input into a LF form.

 

The Highlighted section of the table are to be filled out by the person completing the form but the black cells are simply read only, they may be information like 'expiry date' etc.

 

Any help on how I would design a table like the one attached would be a great help.

 

Thanks

 

 

Table Layout.JPG
Table Layout.JPG (94.45 KB)
0 0

Replies

replied on January 22, 2016

The easiest way to deal with that is through Javascript. See this post for more info. http://answers.laserfiche.com/questions/49651/ReadOnly-Field-Not-Showing-Value-When-Sent-to-Repository

0 0
replied on January 22, 2016 Show version history

Hi Christian,

Bit of a tricky one! I don't think you can do this with forms functionality only, but it can be done with JQuery / Javascript. If you just make the table in forms with all the info in it and with all cells able to be modified you can then add this row of custom JQuery for each read only cell:

$("#Field51\\(2\\)").attr("disabled", true);

EDIT: You'll have to use "readonly" rather than "disabled" if the form will be saved to the repository

By changing the field number (in my case 51) to the id of the column and changing the number between the bracket and backslash (in my case 2) to the row number you can select individual cells from the table to make read only. My resulting table looked like this:

You can then copy / paste the line of code above as many times as necessary and just change the field and row numbers to select different cells.

I hope this helps!

Cheers, Dan

0 0
replied on January 22, 2016

Hi there,

You can create a Database Table with the Table you want to fill in. And use the Lookup rules to fill in the Table field in a form (new feature in Laserfiche Forms 10).

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

Sign in to reply to this post.