Forums

publish/unpublish-button

Fredolino 06 May, 2019
Hi,
I test the demo "Dynamic actions" in CC6. In the preview view, I see the column "Publish".
If I click on the publish / unpublish button, then no publish / unpublish button is visible.
I first have to refresh the page with the demo form in the browser. After that I will again see the publish / unpublish button.
What do I have to change on the form?
healyhatman 06 May, 2019
Answer
There is a check_publish_result switch that uses {var:publish_article} in the data source. But because of changes to the data returned by save data actions, you should change it to
{var.empty:publish_article}
and change the values setup to
false:{fn:choose_article_publish_link}
true:Error!

Save data actions now return either a copy of the newly saved data, or nothing. So if it's empty, it hasn't saved.
Fredolino 07 May, 2019
Wow Super! Thank you very much! :-)
This topic is locked and no more replies can be posted.