question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prefilled fields doesnt' emit events

See original GitHub issue

General information

  • SDK version: 3.27.0, using hosted fields
  • Environment: Sandbox
  • Browser and OS: Windows 10. Chrome Versión 68.0.3440.106 (Build oficial) (64 bits)

Issue description

Prefilled fields seems to not emit events.

I need to prefill Expiration Month and Expiration Year to show Customer’s credit card information. That information should be able to be changed in the future, so When the customer make any change I need to register this event. Strangely , these fields above are not capable of emitting any type of event when modified.

creditCardFormConfig() {
      return {
        fields: {
          number: {
            selector: '#card-number',
            placeholder: 'xxxx xxxx xxxx '.concat(this.last4),
          },
          cvv: {
            selector: '#cvv',
            placeholder: 'Never Stored',
          },
          expirationMonth: {
            selector: '#expiration-month',
            placeholder: 'Expiration month',
            select: {
              options: this.monthOptions,
            },
            prefill: '07',
          },
          expirationYear: {
            selector: '#expiration-year',
            placeholder: 'Expiration year',
            select: true,
            prefill: '2031',
          },
        },
      };
    }

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jackellenbergercommented, Aug 27, 2018

Good to know, thanks @manujimenez23! We’ll update you when we know more!

1reaction
crookedneighborcommented, Aug 21, 2018

I’ve edited your comment to make the code snippet easier to read.

Did a quick check, and I was getting events firing for all the fields with prefills in them. Can you provide your event handling logic?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Autofill does not trigger onChange - Stack Overflow
I have a login form, when the page is opened, Chrome automatically fills the credentials. However, onChange event of input elements are not ......
Read more >
Form doesn't detect prefilled data on onChange events #25398
The fields should detect the prefilled data and show VALID once any change event is triggered. What is the motivation / use case...
Read more >
LiveView phx-change attribute does not emit event on input text
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each...
Read more >
How to Pre Fill Form Fields with Google Tag Manager - YouTube
http://measureschool.com/emailportAsking users to repeatedly fill in form fields can get in the way of user experience and even lower ...
Read more >
Why are my prefill fields not being saved to Airtable after ...
If the prefill fields are not part of the form, enable prefilling hidden fields. Tip. The first step in troubleshooting a hidden prefill...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found