I have a marital status field in my users table that its just varchar
yet I only want to give the users four options (married, single, widowed and divorced) and i want to have the correct one selected when Im editing the form.. is it possible? please help.
I have a marital status field in my users table that its just varchar
Share
This should point you in the right direction:
Assuming that your model has a ‘MaritalStatus’ field,
will select the status of your model by default.