Button Configurations

Hi Community Team

I have a query, I need to configure the formlayout buttons. Like Approve and Reject

1. When I click on a Submit button first time, a textfield needs to be populated. It is populated then I click on the submit second time, It Needs to store the textfield field data  into the DB.

But, here I'm facing issue, When I click on Submit Button Firsttime.. tn the Process Model the action is completed.. Unable to add data to the textfield. In DB is showing Empty.

For the textfield I applied ShownWhen: ri!Cdt.Status = true(),

2. When I click on the Cancel button first time, a Textfield needs to be populated. It is populated then I click on the cancel button again, No actions were taken. I want it to complete the action. Needs to store the textfield field data  into the DB.

Similarly, here also For the textfield I applied ShownWhen: ri!Cdt.Status = false(), 

Status is a boolean field in my cdt.

Can You help me out, how to figure it out.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Why do you want to populate a textfield on click of Submit or Cancel buttons.

    The better UI/UX approach for your use case is to give user a checkbox field in the form to accept or reject the request and side by side show a mandatory text/paragraph field for the comments that user have to add. Then on Submit save those values in the DB using WDSE node in process model.

Reply
  • 0
    Certified Lead Developer

    Why do you want to populate a textfield on click of Submit or Cancel buttons.

    The better UI/UX approach for your use case is to give user a checkbox field in the form to accept or reject the request and side by side show a mandatory text/paragraph field for the comments that user have to add. Then on Submit save those values in the DB using WDSE node in process model.

Children