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

Question

Question

can i edit rows in tables?

asked on March 16, 2014

i have 5 columns with 6 rows.  each row needs to be different.  is there a way to edit each row?  ive tried editing but it takes the settings from row 1 and it applies it to all the other rows.  any ideas on how to do this?  i attached a pic of how my table looks.

 

rows in forms.PNG
0 0

Answer

APPROVED ANSWER
replied on March 17, 2014 Show version history

This might be easier than you thought, at least in terms of making it look that way. 

 

I would suggest using Javascript that runs on page load (starting like the sample below)

$(document).ready(function(){

From there, you go through each column and to each row of the column and make it have the value you want and then make it read only. 

 

The tricky part is making sure to use this information properly if you are pulling the information into a Workflow. 

 

EDIT: I believe the field name for the first row would be the name of the field for the column (say the column is Field1) then the text "Advil" should be set in the input field for Field1(1). or you can set the column to use a CSS Classname and then iterate through that column to set the values.

0 1

Replies

replied on March 17, 2014

Can you please clarify what you are trying to accomplish. If you are trying to get a bunch of different values for each row, then you need to use multiple tables or CSS to format fields to look the way you want it to. 

0 0
replied on March 17, 2014

each row needs to have a different default value.  with the current table i can only edit one row and that would take the default value for all rows.  with the attached file is what i need the table to look like.  with only having the option for checkbox to be enabled and for parent signature enter their last 4 of their social security number everything else would have a default value.

information for table.PNG
0 0
APPROVED ANSWER
replied on March 17, 2014 Show version history

This might be easier than you thought, at least in terms of making it look that way. 

 

I would suggest using Javascript that runs on page load (starting like the sample below)

$(document).ready(function(){

From there, you go through each column and to each row of the column and make it have the value you want and then make it read only. 

 

The tricky part is making sure to use this information properly if you are pulling the information into a Workflow. 

 

EDIT: I believe the field name for the first row would be the name of the field for the column (say the column is Field1) then the text "Advil" should be set in the input field for Field1(1). or you can set the column to use a CSS Classname and then iterate through that column to set the values.

0 1
replied on March 17, 2014

There's not a way to do what you're describing without using JavaScript.

0 0
replied on April 22, 2019

Is there an easier way to do this other than JavaScript?  I was planning to use Forms for UAT submissions and having writing out test scenarios and expected results as read-only fields for columns 1 and 2.  The remaining columns will be user editable fields (pass/fail and comments).  However, the default value of each row will be unique and can be lengthy.

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

Sign in to reply to this post.