What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
[Configurable List] Change value of input field when button clickedAsked by petsnation on October 02, 2015 at 08:03 AM
Hi good people of Jotform,
Need some help with this.
What i need: I've tried every way, when i click on a button, Add Pet, my quantity select input field will update the value, show the increased number accordingly.
I've tried jquery, js, onload, all kinds of functions but just can't get it to work.
configurable list change value input field configurable
Currently this is not possible. Since widget is in iFrame using JQuery is somewhat difficult. I have search our record and found another post similar to yours.
As you will notice, my colleague, Abajan, added a new field that displays the number of rows added.
Only workaround you can use is to create your form with using fields like Radio Button, Checkbox, TextBox, Dropdown or Text Area which can be used inside of Calculation Widget.
We already created a feature request for this so that our developers can take a look if they can create feature for calculations based on configurable list widget.
Thank you for your help.
But i think there's a way to access iFrame elements and get the value just like how we get elements from DOM.
I am wondering if any of your team members can assist with this?
I think it'll be really cool if by clicking "add", the quantity box increments accordingly.
Unfortunately, I think it is not possible at the moment because of the web restrictions such as the same-origin-policy. The widget's URL is from widgets.jotform.io. But as my colleague, Victor has stated, a feature request has been created for making calculations in configurable list widget so that our development team can work on some appropriate updates on the widget.
Do let us know if you need further assistance.