Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submit button text reverts to 'Pay' after submit or on error #30

Closed
samizdat808 opened this issue Mar 20, 2012 · 3 comments
Closed

Submit button text reverts to 'Pay' after submit or on error #30

samizdat808 opened this issue Mar 20, 2012 · 3 comments

Comments

@samizdat808
Copy link

I'm using the 'beforeInject' method to change the text of the submit button on the one-time transaction form. This works fine for the initial load.

But after a validation error, or after the button reverts back from "Please Wait", the default "Pay" message returns.

How can I keep my custom message in the button? I did try afterInject on a lark, but it didn't make any difference.

@shermany
Copy link

Changing the text of the submit button is not currently supported functionality of Recurly.js.

@samizdat808
Copy link
Author

Yet, issue #24 (#24) suggests that it is. Is it just not complete? If not, any idea when this would be available?

@shermany
Copy link

The beforeInject solution given on that issue was a bit of a stopgap, for the reason that you described: It changes the initial state of the button by modifying the DOM, however Recurly.js itself is not aware of the change, and so you lose the change after a validation error (or similar events.)

We are aware of interest in the feature, but have no timeline available for a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants