You are viewing limited content. For full access, please sign in.

Question

Question

Best option for converting all text in form fields to upper case in a cloud form using the new designer.

asked on October 10, 2022

Best option for converting all text in form fields to upper case in a cloud form using the new designer.

I know it is possible in the traditional designer, but I can't get it in the new designer.

And if it is not possible to make all the text fields to upper, then at least the option to make them one by one.

0 0

Replies

replied on October 10, 2022

It is doable with new form designer in Cloud which support JavaScript:

For the single line field with field id 1, use following JavaScript will convert the input to upper case after focus out.

LFForm.onFieldBlur(function () { LFForm.setFieldValues({fieldId: 1}, LFForm.getFieldValues({fieldId: 1}).toUpperCase());}, {fieldId: 1});

You can refer to https://doc.laserfiche.com/laserfiche.documentation/en-us/Default.htm#../Subsystems/ProcessAutomation/Content/Forms-Current/Javascript-and-CSS/TheLFFormObject.htm for the supported JavaScript methods for the new form designer.

The JavaScript for new form designer will be available in self-hosted Forms in the coming release which is target at end of this year.

1 0
replied on October 11, 2022

That works Xiang.

 

Thanks a lot for the help, the tip and the upcoming news.

 

Regards

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.