You need to sign in to do that
Don't have an account?
Magnus Kreth Trailblazer
A Visualforce page shown as a custom action in Salesforce1 does not enable the publishers submit button anymore in Spring '16
I am observing a change between Winter '16 and Spring '16 releases. We are using a Visualforce page shown as a custom action on an object in Salesforce1. The publishers "Save" button should be enabled immediately after page load. Up to now we have used the following code:
<script type="text/javascript">
Sfdc.canvas.publisher.subscribe({
name: "publisher.showPanel",
onData: function (e) {
Sfdc.canvas.publisher.publish({name: "publisher.setValidForSubmit", payload: "true"});
}
});
</script>
However with Spring '16 the publish({..."...setValidForSubmit"..."true"}) call does not happen anymore, the "Save" button does not get enabled.
Apparently the callback for "publisher.showPanel" does not get invoked anymore.
Does anybody know why? And most important what the now preferred way of enabled the "Save" button is?
Thanks®ards,
Magnus Kreth
<script type="text/javascript">
Sfdc.canvas.publisher.subscribe({
name: "publisher.showPanel",
onData: function (e) {
Sfdc.canvas.publisher.publish({name: "publisher.setValidForSubmit", payload: "true"});
}
});
</script>
However with Spring '16 the publish({..."...setValidForSubmit"..."true"}) call does not happen anymore, the "Save" button does not get enabled.
Apparently the callback for "publisher.showPanel" does not get invoked anymore.
Does anybody know why? And most important what the now preferred way of enabled the "Save" button is?
Thanks®ards,
Magnus Kreth