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 value is not changing #39

Open
NirGrocerKey opened this issue Dec 10, 2020 · 3 comments
Open

submit value is not changing #39

NirGrocerKey opened this issue Dec 10, 2020 · 3 comments

Comments

@NirGrocerKey
Copy link

im implementing the form on our site and i need to change the submit text on the form
< const cardForm = window.GlobalPayments.ui.form({
fields: {
....
"submit": {
value: 'ADD',
target: "#credit-card-submit"
}
},
....

but the value is not updating for some reason, any thing i can do?

@norrojas
Copy link

Hi @NirGrocerKey!

Try use the property 'text', instead of 'value'. It's work for me.

 "submit": {
       text: 'BUY',
       target: "#cardSubmit"       
}

@NirGrocerKey
Copy link
Author

Hi @NirGrocerKey!

Try use the property 'text', instead of 'value'. It's work for me.

 "submit": {
       text: 'BUY',
       target: "#cardSubmit"       
}

thanks, but no luck

@slogsdon
Copy link
Contributor

@NirGrocerKey text is the correct property to use in order to set the button text. Here's a JSFiddle example showing this in action: https://jsfiddle.net/h47ncyps/.

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

3 participants