[TYPO3-dev] TCA display field "readonly" based on condition
Satish Maurya
satish04mca at gmail.com
Thu Dec 18 07:53:31 CET 2014
Hi All,
Is there any way to display TCA input form field as readonly if the field
has value more than zero?
I have a single dropdown select box with following values:
- Under review
- Accepted
- Rejected
Once accepted then admin cannot change it further. here is my field in
tca.php file
'request_status' => array (
'exclude' => 1,
'label' => 'Request Status:',
'config' => array (
'type' => 'select',
'eval' => 'required',
'items' => array(
array("Under Review", '1'), array('Accepted',
'2'),array('Rejected', '3')
)
)
),
Can anyone have any idea about it.
*Thanks*
Satish
More information about the TYPO3-dev
mailing list