Custom field list--value different from name?

  • Kathy
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 6 months ago #71640 by Kathy
Hello,
I'm back with another question that I feel a little silly asking. So, generally, in an html select, you can specify a different value from the name listed in the drop-down select:

<select name="carlist" form="carform">
<option value="vo">Volvo</option>
<option value="sa">Saab</option>
<option value="op">Opel</option>
<option value="au">Audi</option>
</select>

Is there a way to do this with the custom "list" field? I would like to store school information as a code, but want registrants to have the full text. Thanks!

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #71641 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom field list--value different from name?
Hi Kathy

Unfortunately, at the moment, it is not possible. The value is the same with the title of the option. We don't have separate options, one for values and one for titles

Tuan

Please Log in or Create an account to join the conversation.

  • Kathy
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 6 months ago #71645 by Kathy
I was just reading on the forum something about the custom sql field, which seems to require a query that returns a value and a name. Would that work in this case?

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #71647 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom field list--value different from name?
That might work. However, the problem is that when the value of the custom field is emailed to customer (or display on registration complete page), it is the "Value" of the selected option displayed, not the "Title"

That's the problem

Tuan

Please Log in or Create an account to join the conversation.

  • Kathy
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 6 months ago #71648 by Kathy
Ah, got it. That's okay by me. Off to see if I can get it to go!

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc