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

Question

Question

Fill a table column field with Java Script

asked on February 2, 2016 Show version history

I want to fill a table column field with specific values. Can I do this by using java script?

0 0

Answer

SELECTED ANSWER
replied on February 3, 2016

Got it to work.

 

$(document).ready(function () {
  $('[name = "Field25(1)"]').val("khalf");

0 0

Replies

replied on February 2, 2016

Hi Brandon,

I assume you want to fill these values from a database lookup? In forms 10 there is built in integration for that using database look ups, and no java script is needed.

 

Is that your use case? 

0 0
replied on February 3, 2016

Not exactly. I am wanting to export the table once the form is submitted. When I do that I don't get the column labels with the data so I was going to add a column that is hidden and fill the fields with the labels. This way when I pull the data out of the chart I have a row label with it.

0 0
replied on February 3, 2016

So far i can fill all boxes in that column but not one at a time. Here is what I am using.

$(document).ready(function () {
   $('[id^=Field25]').val("k");
});

0 0
SELECTED ANSWER
replied on February 3, 2016

Got it to work.

 

$(document).ready(function () {
  $('[name = "Field25(1)"]').val("khalf");

0 0
replied on February 3, 2016

=) nice, sorry I didn't get back sooner. 

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

Sign in to reply to this post.