Multi-Currency Pricing in Gridbox Store App

Multi-Currency Pricing in Gridbox Store App
Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

get Input value from different when button is clicked

1 week 5 days ago #1

  • Ralf's Avatar
  • Ralf
  • Posts: 7
Hello!
I managed to create my own button with the html field from balbooa forms. When you click the button, you will be asked to track your location and to display the exact address in the input field underneath automatically.

When you click on the submit button, the html field is included, so everythin works fine. My question is: do you know how I can access my input field "address" which is an input field from balbooa forms? It would be awesome when you click the button, the value from the input field of "address" would be set automatically aswell.




Thank you very much!

1 week 5 days ago #2

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 23986
Hello,
Thank you for contacting us

You can add a class to the field and use it
code example
document.querySelector('.custom-class-for-your-field-address input').value

Regards,
Vyacheslav, Balbooa.com

1 week 5 days ago #3

  • Ralf's Avatar
  • Ralf
  • Posts: 7
Thank you for your answer!
Yes, I added a class to my field and I can use it. But I need the specific id or class from your balbooa address-input-field. So that I can set the value of your given address-input-field to the value of my html field.

1 week 4 days ago #4

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 23986
If you added a class for the field you now have a specific path to the address field

Best Regards,
Vyacheslav, Balbooa Support Team
Powered by Kunena Forum