Joget Rich Text Editor get value & auto focus

Confluence User - 15 Oct, 2020

how to use javascript to check is there any value enter by the user in the joget rich text field, if no value is enter then auto focus on the rich text field?

forms;javascript

2


16 Oct, 2020
confluenceUser
confluenceUser

I'm unsure of your overall requirements based on your description. My interpretation of your requirement is that the rich text field is mandatory to be filled up upon form submission.

You can simply use a Form Validator here. See Rich Text Editor#Data.

Then just select Default Validator and check the "Mandatory" property.

21 Oct, 2020
confluenceUser
confluenceUser

็Hi, 


I recomend to follow by standard as Chris Angel mentioned.

If you need to apply special requirement like "alert and auto-focus when data changed to no-value", you could put some Javascript in "Custom HTML" form element with on-changed event.


Hope this help.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print