Perform calculation on custom fields

  • davewee
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 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.

More
9 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

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

More
9 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

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

  • davewee
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 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.

More
9 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

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