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

The form does not validate the field if it has the "prepend" option. #42

Open
randysd opened this issue Aug 23, 2017 · 0 comments
Open

Comments

@randysd
Copy link

randysd commented Aug 23, 2017

I used this to create a currency field that prepended the "$" symbol. Everything worked well, but when I tried submitting the form it registered the field as invalid even though it was valid. Further testing showed that it tried to submit the "$" symbol along with the currency amount and I'm guessing this is why it considered the field as invalid. I tested this by prepending a number instead of a symbol and the form submitted fine but the submitted field value included the prepended number.

When using Kinoma to obtain the field value it strips off the prepended characters just fine, but it seems to have trouble doing this when the form is submitted.

I could not find any solution to this, so I went ahead and used the input-group feature from Bootstrap to add the currency symbol outside of the input field. However, it would be great to be able to submit forms using the prepend option from FCSA-Number in the future if possible.

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

1 participant