- Posts: 76
- Thank you received: 2
Custom field list--value different from name?
- Kathy
- Topic Author
- Offline
- Senior Member
-
Less
More
9 years 6 months ago #71640
by Kathy
Custom field list--value different from name? was created 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!
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
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
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
-
Less
More
- Posts: 76
- Thank you received: 2
9 years 6 months ago #71645
by Kathy
Replied by Kathy on topic Custom field list--value different from name?
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
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
That's the problem
Tuan
Please Log in or Create an account to join the conversation.
- Kathy
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 76
- Thank you received: 2
9 years 6 months ago #71648
by Kathy
Replied by Kathy on topic Custom field list--value different from name?
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
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.