kmk Posted February 9, 2018 Share Posted February 9, 2018 Hi all, I am learning to use Pages building something like Bug Tracker of ips, now I try to use Select Box custom field, but I dont know how to use or put name on the key name, please anyone can guide me to understand it? Link to comment Share on other sites More sharing options...
Nathan Explosion Posted February 9, 2018 Share Posted February 9, 2018 A select field's html.... <select> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="mercedes">Mercedes</option> <option value="audi">Audi</option> </select> 'Key' = what is selected and saved (i.e. the 'value' element of the options). 'Value' = what is displayed in the select (i.e. Volvo....Saab....Mercedes Link to comment Share on other sites More sharing options...
bfarber Posted February 9, 2018 Share Posted February 9, 2018 The key can really be anything you want. It won't be displayed (unless you modify the template), but will be what is stored in the database. For that reason, I usually use keys that are fairly close to what is displayed (if not identical) so when I browse the database directly I can easily identify the values, but this probably isn't too relevant to you. In short, you can put whatever you want as the key, unless you plan to do something specific with that value. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.