Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I'm trying to cancel creating a node and show a message in the speech bubble. This is what I tried:
private void ContentService_Creating(IContentService sender, NewEventArgs<IContent> e) { if (e.Entity.ContentType.Name == "Language" && sender.GetContentOfContentType(e.Entity.ContentType.Id).Where(c => c.Name == e.Entity.Name).Any()) { ClientTools ct = new ClientTools(umbraco.BasePages.BasePage.Current); ct.ShowSpeechBubble(Umbraco.Web.UI.SpeechBubbleIcon.Error, "Language exists", "Creating canceled"); e.Cancel = true; return; } }
but the speech bubble just shows up twice, with the default message "Document Creation / Document creation was canceled".
Please, anyone? It's important to be able to show the user why the event was canceled.
Any help on this would be appreciated. I'm sure this is possible, I just cannot find how to do it.
Thanks!
Hi Bogdan,
I also need a solution for this.Did you solve you problem or is it still unsolved?
Best regards -
Tom
Thomas,
I didn't find a solution, I'm sorry. But in my case canceling the creation of a document was happening in only two situations, making it easy to explain what to look for when the canceling speech bubble showed up with the default message.
I am also looking solution to this.
I want to display custome speech bubble message
Any help would be appreciated.
Thanks,
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to cancel ContentService.Creating and show a SpeechBubble
Hi,
I'm trying to cancel creating a node and show a message in the speech bubble. This is what I tried:
but the speech bubble just shows up twice, with the default message "Document Creation / Document creation was canceled".
Please, anyone? It's important to be able to show the user why the event was canceled.
Any help on this would be appreciated. I'm sure this is possible, I just cannot find how to do it.
Thanks!
Hi Bogdan,
I also need a solution for this.
Did you solve you problem or is it still unsolved?
Best regards -
Tom
Thomas,
I didn't find a solution, I'm sorry. But in my case canceling the creation of a document was happening in only two situations, making it easy to explain what to look for when the canceling speech bubble showed up with the default message.
I am also looking solution to this.
I want to display custome speech bubble message
Any help would be appreciated.
Thanks,
is working on a reply...