cancel
Showing results for 
Search instead for 
Did you mean: 

create wizard Done button not getting visible after overriding it.

0 Kudos

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>

Accepted Solutions (0)

Answers (0)