Hi,
I have created a pop-up message when the button is clicked. But I want the pop-up message should have only one button, But I am getting 2 buttons, one for confirmation another for the cancellation. I have tried to comment the line, put nothing into it, but nothing works out. Below is my code:
a!buttonWidget( label: "?", confirmheader: "Thanks for clicking",confirmButtonLabel :"Okay", cancelButtonLabel :"" )
Discussion posts and replies are publicly visible
Hi Karanc, this is the expected behavior of the confirmation dialog. The user has to have the capability to 'cancel'. Otherwise, if the action always demands clicking okay, why using a confirmation? If the user has triggered the action by incident - he should have the option to cancel.Maybe you can go with the a!buttonArrayLayout https://docs.appian.com/suite/help/20.3/Button_Array_Layout.html and use the 'displayWhen' option for your use case.
Can you please elaborate on your answer? I can't find any parameter in a!buttonArrayLayout named 'displayWhen'. Can you please mention how to use that in code.
juergeng393 said:displayWhen
Hi ,
Can you use showWhen (Boolean): Determines whether the layout is displayed on the interface. When set to false, the layout is hidden and is not evaluated. Default: true.