I am creating a form in a dialog using a PublishTopic on the ALF_CREATE_FORM_DIALOG_REQUEST. setting useHash works for setting values. However, setHash is not working, form values are not updated into the hash url when changed.
See my PublishAction below as an example.
Regards
Brian
{
name: "alfresco/renderers/PublishAction",
config: {
iconClass: "info-16",
useCurrentItemAsPayload: false,
publishTopic: "ALF_CREATE_FORM_DIALOG_REQUEST",
publishPayloadType: "PROCESS",
publishPayloadModifiers: ["processCurrentItemTokens"],
"publishPayloadItemMixin": true,
publishPayload: {
dialogTitle: "{node.properties.cm:name}",
dialogConfirmationButtonTitle: "Ok",
dialogCancellationButtonTitle: "Cancel",
dialogRepeats: true,
pubSubScope: "QUEUE_FORM1_",
dialogCloseTopic: "QUEUE_PROCESS_ITEM_SUCCESS",
customFormConfig:{
useHash: true,
setHash: true,
//hashVarsForUpdate: ["title","groupMembership"] //This is only set if not all fields should be included
},
showValidationErrorsImmediately: false,
//groupMemberships: user.properties['alfUserGroups'],
formSubmissionPayloadMixin: {
nodeRef: "{node.nodeRef}"
},
formSubmissionTopic: "PICA_PLANDOCUMENT_UPDATE",
fixedWidth: true,
widgets: widgetsForMetadataDialog
},
renderFilter: [
{
property: "node.isContainer",
values: [false]
}
]
I am creating a form in a dialog using a PublishTopic on the ALF_CREATE_FORM_DIALOG_REQUEST. setting useHash works for setting values. However, setHash is not working, form values are not updated into the hash url when changed.
See my PublishAction below as an example.
Regards
Brian
{ name: "alfresco/renderers/PublishAction",
}