form.convertToData help

I’m having an issue with form ‘convertToData’


 <form class="list" id="my-form">
 <f7-list-input label="Range Picker" type="datepicker" name="range" placeholder="Select date range" readonly :calendar-params="{ dateFormat: 'M dd yyyy', rangePicker: true }" ></f7-list-input>


formSubmit() {
    var formData = this.form.convertToData('#my-form');

Error: Cannot read property ‘convertToData’

Any idea why this doesn’t work? Thanks!

Try app.form.convertToData('#my-form');

(Or replace app with whatever variable you have used to init F7)

1 Like

:flushed: Of course. Thank you, @kerrydp!