- Posts: 38
- Thank you received: 0
System form problem
- Kevin Morrison
- Topic Author
- Offline
- Junior Member
-
Less
More
7 years 3 months ago #110176
by Kevin Morrison
System form problem was created by Kevin Morrison
I want to use the state and the country forms but I only need two countries to display (US and Canada) and there appears to be no way to override this or even disable it and create a custom one. The state one does not even work and show all the states, it only shows a field where the user inputs their text and in that case why bother with a system field for state if it does not include all the states?
I tried to create a custom state and country field with the two I want and then set the condition for state to display only when US is selected and likewise setup one called province for Canada and only show when that country was selected. I was able to get the province to work right but with the state field I created with all the US states when US is selected on the country field it shows but all it says is N/A. What gives and why can I not have control over these fields and have the ability to configure them the way I want?
I tried to create a custom state and country field with the two I want and then set the condition for state to display only when US is selected and likewise setup one called province for Canada and only show when that country was selected. I was able to get the province to work right but with the state field I created with all the US states when US is selected on the country field it shows but all it says is N/A. What gives and why can I not have control over these fields and have the ability to configure them the way I want?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 3 months ago #110179
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic System form problem
Hi Kevin
In short, due to way the fields are programmed (javascript related code), we can only have one country - state couple on the same form at the moment (when country is changed, the states belong to that country will be displayed)
This is due to the way we write javascript code (ajax request) to handle this change. I know this is a limitation and will try to address it (might be in the next release if I have enough time)
For now, maybe you will need to use the second country - state as simple text input
Regards,
Tuan
In short, due to way the fields are programmed (javascript related code), we can only have one country - state couple on the same form at the moment (when country is changed, the states belong to that country will be displayed)
This is due to the way we write javascript code (ajax request) to handle this change. I know this is a limitation and will try to address it (might be in the next release if I have enough time)
For now, maybe you will need to use the second country - state as simple text input
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Kevin Morrison
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 38
- Thank you received: 0
7 years 3 months ago #110193
by Kevin Morrison
Replied by Kevin Morrison on topic System form problem
Thanks Tuan, I think I may have messed something up because now it wont work at all. I will play around with it a bit longer but maybe you could go in an take a look at my issue and tell me where I went wrong?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 3 months ago #110219
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic System form problem
Hello Kevin
Exactly what doesn't work? Please submit a support ticket describes the problem and send us super admin account of your site so that I can help checking it
Tuan
Exactly what doesn't work? Please submit a support ticket describes the problem and send us super admin account of your site so that I can help checking it
Tuan
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.