1
0
-1

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?

    CommentAdd your comment...

    2 answers

    1.  
      2
      1
      0

      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.

        CommentAdd your comment...
      1.  
        1
        0
        -1

        ็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.

          CommentAdd your comment...