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

Question

Question

dynamically changed label caused drop down values gone

asked on April 21, 2020 Show version history

I am sending several field values via the url.

Using Javascript, I use one of the those fields to dynamically change a field label on a drop down.  When I check the form, my drop down choices are missing.

Thank You!

Here's my JS.

     //  dynamically change Field label
  var SchoolYear = '';
  var grade_label = '';
  SchoolYear = $('.sy_box input').val();
  grade_label = 'Grade in '+ SchoolYear  + ' School Year';
  $('.grade_next_year  .cf-label').text(grade_label);   
  $('.grade_next_year  label').append('<span class="cf-required">*</span>');
  

 

0 0

Replies

replied on April 21, 2020

I discovered that I had the same css element name on another field.  I believe this was related to the issue.  I recreated the field in the layout and gave it a new css element name and used the new name to dynamically change the label.    Not sure what happened, but all seems to work now.

Thanks Again...  Sometimes by 'saying' it to someone else, I find my own answer.  :-)

 

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

Sign in to reply to this post.