Format text in form help key

Which IIQ version are you inquiring about?

8.4

Please share any images or screenshots, if relevant.

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

Hello Bhuvanesh

Can you please elaborate about issue and exact place where need to be corrected

Hello @BhuvaneshGeddam

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.

Based on documentation, it is not possible to format the helpkey value in HTML format. It can be text or a localizable message key.

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 .

Hey @BhuvaneshGeddam,

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 "&lt;html>&lt;head>&lt;title>&lt;/title>&lt;/head>&lt;body>&lt;h4 style='color:black'>&lt;/h4>&lt;p style='color:black' > Its a Title &lt;br> Bla bla message &lt;/p>&lt;/body>&lt;/html>";



              </Source>
            </Script>
          </Field>
        </Section>

This gives you a lightweight way to add help text.

Hope that helps!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.