I want to fill a table column field with specific values. Can I do this by using java script?
Question
Question
Fill a table column field with Java Script
Answer
Got it to work.
$(document).ready(function () {
$('[name = "Field25(1)"]').val("khalf");
Replies
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?
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.
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");
});
Got it to work.
$(document).ready(function () {
$('[name = "Field25(1)"]').val("khalf");
=) nice, sorry I didn't get back sooner.