I'm currently working on a hmc search and I'm prefilling the default values like this:
The restriction for the attribute product is working but now I want to set the current date for the attribute validFrom.
<referencecollectioneditor create="false" add="true" remove="true" editable="false"> <restriction attribute="product" sourceattribute="productLP" operator="equal" /> <restriction attribute="validFrom" operator="equal" /> <itemlayout> . . . </itemlayout> </referencecollectioneditor>
How can I prefill the attribute validFrom with the current date so that we don't have to set the date before every search?
Thanks in advance. Yours Oliver.