I have JS in a form that runs like this:
LFForm.onLookupDone(async () => { ... LFForm.changeFieldSettings({fieldId: ID}, {content: `<span style="border-bottom: 1px solid #163f65; padding-bottom: 2px; line-height: 1.75;">${varText}</span>`}); LFForm.changeFieldSettings({fieldId: ID}, {CSSClasses: footer"}); }, {lookupRuleId: 1});
It dynamically adds a footer to a form based on variables that load into hidden fields from a lookup rule. It is working fine but we noticed that when the form is saved to the repository that the custom HTML field that we add this to is just completely blank. How could we make this not disappear when saved to the repository? Is there a CSS class or something to do with @media?