Custom Labels & Values in Select, Radio and Checkbox Form Fields

Custom Labels & Values in Select, Radio and Checkbox Form Fields

You can use the pipe character on your keyboard (『|』) to differentiate between label and value. If you use a pipe (『|』) character in an option value, the part before the pipe will be used as the label, and the part after the pipe will be the actual value. 

You can use this method in a Select, Radio buttons and Checkbox fields.

The backend will look like this:

And the frontend will look like this:

Learn more about the Form Widget and its options here.

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註