publish/unpublish-button

How to fix a publish/unpublish button that disappears after clicking in a CF form.

Overview

The issue occurs because the form's data source check uses an outdated variable after a save data action.
Update the form's check condition to use the correct empty variable syntax and adjust the value mapping to properly handle the save action's response.

Answered
Connectivity v6
Fr 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?
he 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.
This topic is locked and no more replies can be posted.