+ Start a Discussion
Jacob W LandisJacob W Landis 

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


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?

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


<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.

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.