Adding Price Mask Functionality

Hello, I’m working on a classified ad project for agricultural implements using Rive Press. In the ad registration section, there’s a field for ‘price.’ I’d like to add a mask to this price field so that when users type, it automatically inserts commas and periods in the right places based on the entered value. For instance, if a user types ‘$2500’ the mask should format it as ‘$2.500,00’ How can I implement this mask for the price field? Thank you!

Hi,

Sorry, there’s no simple code snippet for this, it would require a custom implementation. Also, please note that the price is formatted automatically, not in the field itself, but in the sidebar, for example (if you have a Marketplace price). Please note that if you do not have the Marketplace extension, you can add a currency symbol to the price format display of the attribute, you can check this doc How to add listing attributes - HivePress Help Center

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