post by richb201 on Jan 16, 2023

I have a column in my table called COMPLETE which is an int. ZERO is equal to no and one is equal to yes. I’d like the value in the CRUD to appear as yes or no, rather than zero or one. How do i do this? Is there some way to use setField to allow the value (in the crud) to appear as YES or NO wo having to change the schema to text?

post by cybernicois on Jan 18, 2023

post by expi on Jan 18, 2023

I have this:

		$crud->fieldType('complete', 'dropdown', [
			'0' => 'no',
			'1' => 'yes'
		]);

altough for some reason in the latest update it does not display ‘no’ in the column view anymore.

post by mariel_alberto on Jan 18, 2023

post by richb201 on Jan 26, 2023

1 / 5
Jan 2023