Skip to main content
Inspiring
November 4, 2021
Answered

HOW TO AUTHOMATICALLY UNDERLINE LETTERS IN IN FORM FIELDS (IN MULTI-LINE MODE)

  • November 4, 2021
  • 1 reply
  • 4960 views

Dear Community,

How do I do the above subject matter in my forms?

Thanks in anticipation for a quick response.

This topic has been closed for replies.
Correct answer try67

Sorry for the delay in response. jumped into a meeting that passed it threshold.

i have a Rate, Qty and Amount0 - 8 column with Total Amount underneath. i am to sum up Amount0 - 8.

Thanks.


You can use this code as the field's custom calculation script, then:

 

var total = 0;
for (var i=0; i<=8; i++) {
	total+=Number(this.getField("Amount"+i).valueAsString);
}
event.richValue = [{text: "$" + util.printf("%.2f", total), underline: true}];

 

And you can remove the Validation script from earlier.

1 reply

try67
Community Expert
Community Expert
November 4, 2021

You need to provide more information about how exactly it should work: Which letters? Does the field have a calculated value, or one entered by the user? etc.

saka5FD5Author
Inspiring
November 4, 2021

An example would be the attached memo.

Thanks

try67
Community Expert
Community Expert
November 4, 2021

That doesn't answer any of my questions.