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

Question

Question

Modern Designer field label

asked on January 19, 2023

Is it possible to change a field label based on another field value? I know we can change the label in the Classic Designer using JavaScript. 

What options do we have in the Modern Designer to change a field label? 

Currently, I have a series of fields set out in a way to look like a table. Then I change the "column labels" to show the financial year i.e. 2021/2022 based on a starting year value. This is all achieved with JavaScript in the Classic Designer. 

0 0

Replies

replied on January 19, 2023

I have tried this JavaScript based on the documentation...

LFForm.onFieldChange(function(){ LFForm.changeFieldSettings({fieldId: 5}, {label: LFForm.getFieldValues({fieldId: 4})}) }, {fieldId: 4});

Which works for a field not in a table. But doesn't work for a field within a table. 

 

 

1 0
replied on January 27, 2023

Hi Jonathan,

It was a known bug that changeFieldSettings could not change the label for field in table;

It worked for a field in collection though.

0 0
replied on January 28, 2024

@████████ has this bug been resolved in Update 5? Thanks!

0 0
replied on January 31, 2024

Thank you!!

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

Sign in to reply to this post.