Share all details about your problem, including any error messages you may have received.
I’m trying to find out if it’s possible to use HTML formatting, may not be even the full set but a limited set like line breaks and tabs in form help key.
I don’t think there is an OOTB way by using some config like contentIsEscaped
It seems you are trying to use it for help key in a custom form. If that’s the case, line break isn’t required as this is not something to be parsed as VTL, but to be considered as Java string. you can try \n if required.
Thank you all for the replies, but there is no OOTB way possible to do this, tried using message keys but the embedded new lines and other control characters are being escaped so that didn’t work too (behaved the same way as shown in the screenshot.
I’m looking for possible ways on making it work without OOTB features.
Hi @BhuvaneshGeddam , HTML tags can’t be put in Form Help keys . It is kind of limitation . But somebody was telling me where you can inject tags in forms using plug-in or so , I did not explore further on that since i did not had that time . Probably explore in community if someone did anything like that .
You could try adding a section for a message to give you more control over what gets displayed!
Below is an example. You can add this section on top of the field where you want to display help text:
<Section name="Section 15" type="text">
<Field displayName="User Info" filterString="htmlRender" name="tableData" postBack="true" type="text">
<Attributes>
<Map>
<entry key="contentIsEscaped" value="true"/>
<entry key="hidden">
<value>
<Script>
<Source>
// Return true/false based on your condition to show or hide this section
</Source>
</Script>
</value>
</entry>
</Map>
</Attributes>
<Script>
<Source>
return "<html><head><title></title></head><body><h4 style='color:black'></h4><p style='color:black' > Its a Title <br> Bla bla message </p></body></html>";
</Source>
</Script>
</Field>
</Section>
This gives you a lightweight way to add help text.