Additional Comments Validation when 'Post' Button is Clicked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2025 09:30 AM
Hi All,
I needed help in one of the requirement.
I want to create a validation on the additional comments fields i.e. it should be more than 3 characters, I have created an onSubmit client and it works when I update/save the form.
However this does not work when I click the 'Post' button beside the Additional Comments field, could you help me with a way out.
Thanks for your help in advance!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2025 10:31 AM - edited ‎06-04-2025 12:44 AM
The Post button operates differently than the form submission process. The Post button appends the comment asynchronously without submitting the entire form, so onSubmit client scripts do not run in this context.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2025 10:45 AM
Hi Hristo
I am not able to locate the UI action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2025 10:49 AM - edited ‎06-04-2025 12:45 AM
Making a change to this would impact everywhere that this button is used
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2025 12:47 AM
Your best option would probably be to create a BR on the sys_journal_field that checks on insert if the desired text is present. However, I haven't tested this, so I cannot confirm if it will work.