36
Views
0
Comments
[Confirmation Dialog] Add Show attribute in Confirmation Dialog 
Question
confirmation-dialog
Web icon
Forge asset by Samuel Jesus

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())








Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.