Hi,
As part of the UI a helpToolTip has been added, however this displays only in standard text. The requirement is for to be shown in italics instead, below is the current coding, could you please advise how i can amend for the italic text .
a!paragraphField( label: "Description of Request", labelPosition: "ABOVE", helptooltip: = "high level project summary – detail key deliverable", style: "EMPHASIS", value: ri!project.projectDescription, saveInto: ri!project.projectDescription, refreshAfter: "KEYPRESS", required: true, height: "TALL", validations: {}
Thanks in advance.
Jay
Discussion posts and replies are publicly visible
The 'helpToolTip' attribute is defined as follows:
helpTooltip (Text): Displays a help icon with the specified text as a tooltip. The help icon does not show when the label position is “COLLAPSED”.
which means there is no option for controlling the font in any way.
Sounds like a low value "requirement" to me.
Thanks Stewart!!
happy with that answer
Thinking a bit more...you could include an additional field "near" your paragraph field (you could use the a!sideBySideLayout() to achieve this) and make the other field a Rich Text field and set that as italicised...but it would always be visible, unlike the toolTip which you need to hover over...
...and thinking again, you could use Unicode Characters to assemble your text:
...you'd have to build a little utility rule to map the alphabet to the relevant Unicode values...so a fair amount of work for little real business value...but maybe some kudos in it for you!
That's a neat idea, though I'd further caution that depending on the browser or app viewing it, some users might experience issues with unicode characters depending on the age of the particular character set. But in the case of a pesky requirement this could be the 'right' workaround.
So..taken a little bit of time but cracked it!!
and its working like a dream!
used multiple functions, to make the rule flexible across other areas of the application and for future use!
So out of curiosity...how are numerical and non-alphas being handled? When I took a quick look Unicode italics were limited to alpha characters only...
by using both the code() and the actual Unicode decimal place itself; calculating the difference to bring the expected result.
for instance for the letter 'h' = 104 within the code function + 8358 (Unicode) = 8462
items: code(ri!textInput), expression: if(fv!item = 104, char(fv!item + 8358)