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

Question

Question

Is it possible to change column label from lookup

asked on January 21, 2018

I am building a form and need to have the Monday Dates in the Row Labels and activities in the Column Label.

How do I populate the Columns (Label) from a lookup (SQL)?

 

0 0

Replies

replied on January 23, 2018

Hi Jonathan,

You may use a hidden field for saving the lookup results, and use custom script to update column label based on the field value.

To update the first column label, try script like this (the lookup result field has class "myField" and the table has class "myTable")

$(document).ready(function(){
  $('.myField input').change(function(){
    $('.myTable .cf-col-label:eq(0)').text($('.myField input').val());
  });
});

 

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

Sign in to reply to this post.