cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Editorarea action customize popup

Former Member
0 Kudos
1,324

Hy everybody.

I have created a new action for an editor action (hybris 6.7). When I click this action I get the confirmation popup with the button cancel and accept.

What I need to do is in this popup to add an textarea and only when it has information to can accept this action. Before the button it must have a textarea and "YES" button will enable when it has data.

Thanx a lot. 😉

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member716879
Discoverer
0 Kudos

can any one help me on this please how we can make text "are you sure ?" as red in above popup.

pavan_joshi1
Participant
0 Kudos

Hello,

when you are adding dynamic ZHTML like MessageBox to show popup (in widget controllers), you can also add all sorts of HTML components in the form of ZHTML classes.

Just refer below package for the same.

org.zkoss.zhtml

Example:

org.zkoss.zhtml.Div div = new Div(); 
div.setStyle(style);
Former Member
0 Kudos

You can customize MessageBox and put your logic there whatever you want

 //Below is the example of showing refund message based on refund response
 Messagebox.show(returnService.getRefundFailureMessage(returnRequest, paymentRefundResponseData), // message
                     "Payment Refund Failed", // title
                     new Button[]
                     { Button.OK }, // buttons
                     null, // button labels
                     Messagebox.ERROR, // icon
                     null, // focused button
                     null, null);