User Defined Price: Only Allow For Whole Dollar Amount

I have a client who wants to utilize the ‘User Defined Price’ field but only allow users to enter in whole dollar amounts. Meaning, the user can only enter in $1.00 and not $1.50.

Any way to do this with Gravity Forms?

Thank you.

How about this additional snippet from Gravity Wiz:

Thank you, Chris.
However, I need only to round up to the nearest dollar if $1.50 or round down to the nearest dollar if $1.49 instead of large increments.

Hi Heather. I don’t know of any other solutions for this other than the Gravity Wiz solution. I’ll leave this open in case anyone has an alternate code solution to offer.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.