Re: [drewh01] Setting up an amenity list using checkboxes
Hi drewh01,
For checkboxes, you can create a checkbox field, then paste in the following code into your detail page:
<?php if ($propertyRecord['surround_sound']): ?>
Surround Sound<br />
<?php endif ?>
You'll need to change the code in red above to match your record variable name, field name, and HTML you want to display if the field is checked.
Some of your examples (e.g. Bed Size) would probably make more sense as List fields instead of Checkbox fields. To display the value of a list field, you need only paste in this code:
<?php echo htmlspecialchars($propertyRecord['bed_size'])) ?>
Once again, replacing the text in red with your record variable name and field name.
I hope this helps. Please let me know if you have any questions.
All the best,
Chris