Require values in e-mail and text fields

Error monitoring tool for recording videos & screenshots of user sessions
Post Reply
User avatar
dimehb
Premium Member
Premium Member
Posts: 192
Joined: Fri Oct 02, 2015 11:06 am

Require values in e-mail and text fields

Post by dimehb » Wed Mar 20, 2019 4:22 pm

Is there a possibility to make the e-mail and message fields required? Our users seem to be pretty lazy when they submit an error.

User avatar
mats
Core Developer
Core Developer
Posts: 13550
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: Require values in e-mail and text fields

Post by mats » Wed Mar 20, 2019 5:39 pm

Not through the API I'm afraid. But you can get to the button iframe element and reach for the name field and add the 'required' attribute to it.

Code: Select all

logger.feedbackButton.el.querySelector('[name=name]').setAttribute('required', true);
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

Post Reply