Field type: number doesn’t allow decimals
-
Entering a decimal, like ‘7.5’ into a field of type: number causes a block error and causes it to fail to load.
In my case, my page was a long menu, and the block is ‘menu item’ with an ‘item price’ field of type number. The entered values here can only be integers – if you try to enter a price with decimal, like ‘7.5’, the value seems to save, but the block will not render – you get that ‘invalid parameters’ error message.
Side note: I found out in trying to make this change for my client that if you change the type of a field, it causes all instances of that block to wipe out (or at least fail to show) the values in that field.
- The topic ‘Field type: number doesn’t allow decimals’ is closed to new replies.