dtan
Posts: 7
Joined: Tue Sep 01, 2020 7:11 pm

Ionic 4 textarea to database.

I used an HTML component to create an ion-textarea input and it works fine. How can I get the value of that field into the database? All that shows in the mapping is the HTML component, and I can't get a local variable to get that value either. Thanks!

brendanm@ite.co.za
Posts: 26
Joined: Mon Jul 27, 2020 12:05 pm

Re: Ionic 4 textarea to database.

Have you tried a (ionChange) attribute on the ion-textarea passing $event to the function? You should be able to get the text in the called function using event.target.value or similar

dtan
Posts: 7
Joined: Tue Sep 01, 2020 7:11 pm

Re: Ionic 4 textarea to database.

This worked! Thank you so much for your suggestion!

Return to “Issues”