Check user action value in HTML Workspace | Community
Skip to main content
Moonraker046
New Participant
August 29, 2017
Solved

Check user action value in HTML Workspace

  • August 29, 2017
  • 2 replies
  • 3005 views

Hi all,

I do have a AEM Forms 6.1 (ex LiveCycle) Workflow in the Process Management module.

Basically it's a approval workflow with several approval task (as AssignTask operation) based on a XDP form.

Now I need a solution to check which user action (e.g. Approve, Deny) the user has selected in the HTML workspace. So let's say when the user clicks the "Deny" button I want him to get forced to fill in a comment field in the form.

Thank you for your help.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by user7587541

Put a script on the button to validate that the required fields are filled.  You may need two buttons, one that the user sees and clicks on and once the validations are done it executes the click of the submit buttons.

2 replies

Moonraker046
New Participant
November 9, 2017

I wonder as I see no possibility to put a script on a HTML Workspace button.

My goal is to force the user to leave a comment in a text field of the XDP form only if he clicks on "Deny". When "Approve" is clicked the user has not to fill in the additional comment.

How can I achieve this?

user7587541Accepted solution
Employee
October 27, 2017

Put a script on the button to validate that the required fields are filled.  You may need two buttons, one that the user sees and clicks on and once the validations are done it executes the click of the submit buttons.