I created a object-specific publisher action, my objective is to submit the custom object on the redirected visualforce page. It works fine to pass the object parameters to the visualforce page, but how can i use or overwrite the standard button??

By default the button is disabled

enter image description here

<button class="primaryButton cuf-publisherShareButton default uiBlock uiButton" accesskey="" disabled="disabled" type="button" data-aura-rendered-by="5:1853.28"><!----><span class=" label bBody truncate" dir="ltr" data-aura-rendered-by="8:1853.28">Submit</span><!----></button>

2 Answers 2


Working on Salesforce1 too, and I found that for you. I hope it's what you are looking for. Works perfectly for me. Here is the source doc

<script type='text/javascript' src='/canvas/sdk/js/publisher.js'></script>
    Sfdc.canvas.publisher.subscribe({name: "publisher.showPanel",
        onData:function(e) {
            Sfdc.canvas.publisher.publish({name:"publisher.setValidForSubmit", payload:"true"});
    Sfdc.canvas.publisher.subscribe({ name: "publisher.post",
        onData: function(e) {
            alert("call some remote action here");
            Sfdc.canvas.publisher.publish({ name: "publisher.close",
                payload:{ refresh:"true" }});
  • Thanks a lot! Have you any idea, how to use the publisher.setPayload to post a Chatter feed?
    – daniel-h
    Commented Feb 21, 2014 at 9:00

Since the publisher.setPayload is only meant for canvas, I have been using a remote action to create a post on chatter and then just after the remote action i do a refresh, for a global action using a VF.

Sfdc.canvas.publisher.publish({ name: "publisher.refresh", payload: { feed: true } });

maybe you have come across a better solution.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .