You can submit a form, it just won't submit values coming from custom elements. It will only work with elements that form already knows about, like input and select. To submit a form with custom elements (like paper-input) you will need to use ajax.
On Sun, Aug 17, 2014 at 11:18 PM, Sachin Kumar <[email protected]> wrote: > Hi Rob, > > Thanks for reply. Is it possible to submit a form in Polymer simply like > we do in html or without using ajax? > > > On Thu, Aug 14, 2014 at 11:55 PM, Rob Dodson <[email protected]> wrote: > >> You'll want to use ajax to submit the element. Take a look at this >> StackOverflow thread: >> http://stackoverflow.com/questions/24461460/polymer-form-post-data >> >> We're working on a better solution and hope to have something to show soon >> >> >> On Thu, Aug 14, 2014 at 6:48 AM, Sachin Kumar <[email protected]> >> wrote: >> >>> Hi, >>> Please tell me how to submit a form having paper element. >>> >>> *e.g.* >>> <form action='', method='POST'> >>> >>> <paper-input placeholder="First Name" required >>> invalid id="paper_input" error="This Field is required" label="Type >>> something..." class="invalid"></paper-input> >>> <paper-input placeholder="Last Name" required >>> invalid id="paper_input1" class="invalid" label="Type >>> something..."></paper-input> >>> <paper-input placeholder="Enter Your Email" required >>> pattern="^(.)+@[a-z A-Z _]+?\.[a-zA-Z]{2,3}$" invalid id="paper_input2" >>> class="invalid" label="Type something..."></paper-input> >>> <paper-input type="password" placeholder="Enter >>> Password" required invalid id="paper_input3" class="invalid" label="Type >>> something..."></paper-input> >>> <paper-input type="password" placeholder="Confirm >>> Password" required invalid id="paper_input4" class="invalid" label="Type >>> something..."></paper-input> >>> <input type="SUBMIT" name="submit"/> >>> >>> </form> >>> >>> Thanks >>> >>> Follow Polymer on Google+: plus.google.com/107187849809354688692 >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Polymer" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/polymer-dev/a05917c8-fae7-46aa-a62b-953c3bedd0b5%40googlegroups.com >>> <https://groups.google.com/d/msgid/polymer-dev/a05917c8-fae7-46aa-a62b-953c3bedd0b5%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> > > > -- > > Thanks & Regards, > Sachin Kumar > Daffodil Software pvt. ltd, > Gurgaon, Haryana > Follow Polymer on Google+: plus.google.com/107187849809354688692 --- You received this message because you are subscribed to the Google Groups "Polymer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CAJj5OwCnPvVx0Jz5qGwbaba_nRdMA0gYADS8YmGLa8LyU8CKjg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
