Filling a form
One object loaded into a form. Each control takes its value in the way that suits it: text fields and the textarea take it as text, the checkbox and radio buttons are checked when their value matches, and the selects select matching options. Try another company: 17, 18, 19, 20, 21.
Result
Template
Script
IsFeatured is a boolean. The checkbox has value="1", which
true equals in a loose comparison. Saving submits the form to the details page,
which loads the company again from its ID.