function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jacob W LandisJacob W Landis 

Is there a way to disable and enable a textarea based on the checkbox in flow?

Hi,

We are using Flow to develop some simple pages. One of them have a checkbox and a textarea. The textarea field should only enabled when checkbox checked. Does anyone know how to implement this?

Thanks,
Deepak Kumar ShyoranDeepak Kumar Shyoran
You can either set the disabled attribute for apex:inputTextarea dynamically based on your checkbox field on page.

Ex: 

<apex:inputTextarea value="{!Description__c}" disabled="{!If(Chkbox__c = true,false,true)}" />

You can modify above code as per you requirement.
Jacob W LandisJacob W Landis
We are not using visualforce page but just flow. I dont' think we can have apex code there.

Jingli
Deepak Kumar ShyoranDeepak Kumar Shyoran
Ohh. Well there is no such way in flow where you can use above code and hence not possible to rendeered Text area based on checkbox due to limitation of Flows.