ask editor variable with ChangeAttributesOperation
Posted: Tue Dec 06, 2022 4:22 pm
Hello,
I am using the Author web 25 version.
I have created this operation:
When I launch this action, a popup is displayed allowing to change attr1 and attr2 with two fields.
The problem is that I would like to have the possibility to put a non empty value to only one of this attribute filed and let the other one at an empty value.
If an attribute has an empty value in the popup field, it has to be removed from the XML.
I cannot perform this because the form forces to have two non empty values.
Do you have an idea to perform this behaviour?
Thank you for your help,
Johann
I am using the Author web 25 version.
I have created this operation:
Code: Select all
<a:operation id="ChangeAttributesOperation">
<a:arguments>
<a:argument name="attributeNames">attr1
attr2</a:argument>
<a:argument name="values">${ask('Change attr1:', generic)}
${ask('Change attr2:', generic)}
</a:argument>
<a:argument name="removeIfEmpty">true</a:argument>
</a:arguments>
</a:operation>
When I launch this action, a popup is displayed allowing to change attr1 and attr2 with two fields.
The problem is that I would like to have the possibility to put a non empty value to only one of this attribute filed and let the other one at an empty value.
If an attribute has an empty value in the popup field, it has to be removed from the XML.
I cannot perform this because the form forces to have two non empty values.
Do you have an idea to perform this behaviour?
Thank you for your help,
Johann