12-15-2020 6:03 AM - edited 02-03-2024 7:33 PM
Hi All,
I have to override the done button visibility for product references. As per OOTB, referenceType is not mandatory. I need to make this mandatory.
To achieve this, I was trying to override OOTB ProductReference create-wizard. Done button is getting hide when referenceType is empty but after adding referenceType, button is not getting visible.
My code is mentioned below. Please help me out here to understand the issue.
<context type="ProductReference" component="create-wizard" parent="Item" merge-by="type">
<wz:flow xmlns:wz="http://www.hybris.com/cockpitng/config/wizard-config" id="ProductReferenceWizard" title="create.title(ctx.TYPE_CODE)" merge-mode="merge">
<wz:prepare id="itemPrepare"> <wz:initialize property="newObject" type="ctx.TYPE_CODE"/> <wz:assign property="newObject.source" value="ctx.parentObject"/> </wz:prepare>
<wz:step id="step1" label="flow.allmanadatory">
<wz:content id="step1.content">
<wz:property-list root="newObject" include-non-declared-mandatory="true" include-non-declared-writable-on-creation="true" include-non-declared-unique="true" enable-non-declared-includes="true"/>
</wz:content>
<wz:navigation id="step1.navigation">
<wz:cancel/>
<wz:done visible="!#empty(newObject.referenceType)">
<wz:save property="newObject"/>
</wz:done>
</wz:navigation>
</wz:step>
</wz:flow>
</context>
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.