Jump to content

Read only input fields not working?

  • Please log in to reply
No replies to this topic

#1 ChrisCross



  • Members
  • Pip
  • 2 posts

Posted 11 January 2021 - 07:26 AM

I'm trying to make an input field readonly in grocery crud enterprise;

$crud->fieldType('user_name', 'readonly');
$crud->fieldType('user_tel', 'readonly');
$crud->fieldType('start_date', 'readonly');

I've tried the above method but it just doesn't seem to work. It just lists the input field as normal, fully editable.

$crud->readOnlyFields(['user_name', 'user_tel', 'start_date']);

I've also tried using this method.. which kind of works? By the looks of it it certainly does make the fields read only. But for some reason the field values aren't being posted when I submit the form.


Am I missing something?

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users