I want a numeric field that validates and allows commas for entering currency values. Is there a way to do that now? If not, what is the workaround you suggest?
Similar questions were asked more than 2 years ago here:
If you do not know how to use custom JS, please feel free to contact our certified partners for your any custom programming needs:
=> https://toolset.com/contractors/
Thanks. We're able to add commas, but were hoping there's a way to get it to work with a numeric field which otherwise would fail validation. We'll have to write a custom validation function and use a single line field instead.
I hope Toolset adds this to CRED forms in the future. It is readily available in other plugin(s) like Gravity Forms.
We'll have to write a custom validation function and use a single line field instead.
-- I think this is the best alternative way. Toolset Forms offers the hook to validate the form server side. You can use the Toolset Forms hook: cred_form_validate
=> https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_validate