Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Choice field - have different text to value in the html

$
0
0

Is there a trick to have a choice column field display different text to the actual value. I suppose it could be done with a lookup field to anther list, but just checking if there is an undocumented trick to make the HTML display the way we want it to. In Lotus Notes Developer you can simply add a pipe between the display text and the value in your choices eg :

North | N
North West | NW
South | S

To have this HTML output:

<select><option value="N">North</option><option value="NW">North West</option><option value="S">South</option></select>


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>