XF 2.2 xf:numberboxrow allow cents

moonriver7

New member
I am using xf:numberboxrow element and am trying to make two modifications to the form:

1- I would like the +/- numbers to increase/decrease by whole numbers, but when i change the template to increase/decrease by whole numbers, then manually-entered decimals (cents) are not allowed (alert: "Enter a Valid Value"). How do i make it so the +/- uses whole numbers, but the user is still allowed to manually input cents?

2- I would like to add a button to the right of the form (eg a "10" button), when the user clicks, it changes the number in the field:

See attached image for both.
 

Attachments

  • Screen Shot 2023-09-09 at 11.53.31 AM.webp
    Screen Shot 2023-09-09 at 11.53.31 AM.webp
    2.9 KB · Views: 6
Last edited:
Pretty sure that can be done... but also pretty sure it will need to have XenForo extended via an add-on (probably a simple one) to do so.
 
Top Bottom