Hi,
I have created 2 date fields similar to the date fields mentioned in the below link.
Need to make first date field set with current date and Read only so user may not be able to select the date. Is there a way to do it?
Hi
May be to do something like this:
Configuration:
<ac:structured-macro ac:macro-id="073af897-9a08-410e-a49a-d0fcf6eee6a8" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">f</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="691a7af9-9e03-49e2-aea5-bc8125359800" ac:name="confiform-entry-register" ac:schema-version="1">
<ac:parameter ac:name="presetValues">d=[entry._now]</ac:parameter>
<ac:parameter ac:name="type">Embedded</ac:parameter>
<ac:rich-text-body>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<ac:structured-macro ac:macro-id="c09d2978-3d36-4e75-9bf2-757141990229" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">d</ac:parameter>
<ac:parameter ac:name="fieldLabel">d</ac:parameter>
<ac:parameter ac:name="type">date</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="2ecfa27a-cb57-4705-9acb-e9460789536a" ac:name="confiform-field-definition-rules" ac:schema-version="1">
<ac:parameter ac:name="fieldName">d</ac:parameter>
<ac:parameter ac:name="action">Set field readonly</ac:parameter>
</ac:structured-macro>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<br/>
</p>
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.