0

How do i programmatically change a field's 'Widget' property under 'Manage Form Display' & a fields 'Format' property under Manage Display?

Manage Form Display:

I'd want to programmatically change the Birthdate field's 'widget' property to 'Textfield' to make it visible on forms when my module is installed/enabled.

enter image description here

Manage Display:

I'd want to programmatically change the Birthdate field's 'format' property to 'Plain Text' to make it visible on forms when my module is installed/enabled.

enter image description here

marked as duplicate by Berdir 8 Jan 6 '17 at 18:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.