Skip to content

Conversation

@Shweyy123
Copy link

📝 Pull Request Description

This update to UIAction.js introduces a new client-side function openEditLastCommentModal() that enables users to open a modal for editing the most recent Work Notes or Additional Comments on the Incident form.

🔄 Key Changes:

  1. Added a documented function openEditLastCommentModal().

  2. Utilizes GlideModal to launch a UI macro (edit_worknotes_comments_inc) in a dialog.

  3. Passes the current record's sys_id using setPreference("incid", g_form.getUniqueValue()).

  4. Sets the modal width to 550 and applies a custom title.

  5. Designed for use with a UI Action configured as:

Client: true

Form Button: true

OnClick: openEditLastCommentModal()

📈 Purpose:

To enhance the user experience by allowing inline editing of the last communication fields without leaving the Incident form.

@shreyawani98 shreyawani98 self-assigned this Oct 6, 2025
@shreyawani98
Copy link
Contributor

Hi @Shweyy123

After reviewing your request, it seems that you have not added the ReadMe.md file. Apart from that, since the use case is about the WorkNotes, please exclude the other javascript file about HrTask and keep only the WorkNotes UIaction javascript file.

Please submit another pull request as mentioned above.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants