- Posts: 16
- Thank you received: 0
Perform calculation on custom fields
- davewee
- Topic Author
- Offline
- New Member
-
Less
More
10 years 6 months ago #51182
by davewee
Perform calculation on custom fields was created by davewee
I would like to add a second address in custom fields, with a Country and State field. I can select them as drop-down type fields, but how do I get the new State field to be populated depending on the new Country field selected?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
10 years 6 months ago #51209
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Perform calculation on custom fields
Hi davewee
Unfortunately, we have no way to do that at the moment. Maybe in this case, you will have to setup the second state field as Text field so that users can enter anything he wants
Tuan
Unfortunately, we have no way to do that at the moment. Maybe in this case, you will have to setup the second state field as Text field so that users can enter anything he wants
Tuan
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
10 years 6 months ago #51210
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Perform calculation on custom fields
Maybe you can try this solution :
1. Lets says that the second field has name country_1, state_1
2. You can try to edit the second country field, look at Extra Attributes, enter :
onchange="buildStateField('state_1', 'country_1', '');"
Maybe that will works but I could not assure
Tuan
1. Lets says that the second field has name country_1, state_1
2. You can try to edit the second country field, look at Extra Attributes, enter :
onchange="buildStateField('state_1', 'country_1', '');"
Maybe that will works but I could not assure
Tuan
Please Log in or Create an account to join the conversation.
- davewee
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 0
10 years 6 months ago #51223
by davewee
Replied by davewee on topic Perform calculation on custom fields
No, that doesn't work. I don't even see how the first one works... jquery magic, I guess :blink: . No worries, the second one isn't too important.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
10 years 6 months ago #51250
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Perform calculation on custom fields
Yes. Then change the second state field to Textbox, then !
Tuan
Tuan
Please Log in or Create an account to join the conversation.
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.