I disabled date field using .setDisabled() as true. But when i disable it using .setDisabled(false), the date picker and input field is greyed out. I tried business rule also. Getting same behaviour.
Is this a bug? Any alternative solution available?
I'm working in UCI CRM on premise.
Business Rule:
Form behavior: Disable 'Rent Escalation end Date' if 'Does Escalation Rate Vary?' = No. Working fine
Form behavior: Enable 'Rent Escalation end Date' if 'Does Escalation Rate Vary?' = Yes. Rent Escalation End date is unlocked/enabled, but date picker not working.
Thanks in advance,
Harisa
Hi,
Can you please share the screenshot of business rule/script. because I tried the same with business rule and it working fine:
and with script as well:
inside script used below code to enable and disabled the datetime field:
formContext.getControl("fieldlogicalname").setDisabled(true);//disabled
formContext.getControl("fieldlogicalname").setDisabled(false);//enable
Thanks,
Pradeep.
Daivat Vartak (v-9d...
225
Super User 2025 Season 1
Eugen Podkorytov
106
Muhammad Shahzad Sh...
106
Most Valuable Professional