[Confirmation Dialog] Add Show attribute in Confirmation Dialog

[Confirmation Dialog] Add Show attribute in Confirmation Dialog

  
Forge Component
(15)
Published on 2015-01-21 by ITDelivery OutSystems
15 votes
Published on 2015-01-21 by ITDelivery OutSystems

We would add the confirmation dialog at the Ajax submit link if happens some conditions.

Is it possible to add a show attribute  in the confirmation dialog?

We try to add a show attribute and add a expression (javascript) in the confirmation dialog:


If(toShow,"<script>
var click" + Replace(ButtonId,":","_") + " = document.getElementById('" + ButtonId + "').getAttribute(""onclick"");
document.getElementById('" + ButtonId + "').setAttribute(""onclick"",""return OpenConfirmationDialog('" + PopUpMainContainer.Id + "','" + ButtonId +"')"");
</script>",NullTextIdentifier())