function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Aniruddha VashishtheAniruddha Vashishthe 

I have used input type = "number" in my Visualforce page.I have used docType="html-5.0" with my <apex:page>. What i need is that this input type = number must not allow more than 2 digits after the decimal. This I want to achieve without using javascript

<apex:input type="number" html-min = "0" html-max = "1000">


Kindly provide some help on this.
Thanks and Regards
Best Answer chosen by Aniruddha Vashishthe
LBKLBK
Hi Aniruddha,

I doubt if you have a straight forward solution for this scenario.

You need some Javascript workaround for this.

Check if the solution in the URL below works for you.

https://salesforce.stackexchange.com/questions/1428/formatting-number-values-on-visualforce-page

Let me know.

All Answers

LBKLBK
Hi Aniruddha,

I doubt if you have a straight forward solution for this scenario.

You need some Javascript workaround for this.

Check if the solution in the URL below works for you.

https://salesforce.stackexchange.com/questions/1428/formatting-number-values-on-visualforce-page

Let me know.
This was selected as the best answer
Aniruddha VashishtheAniruddha Vashishthe
Hi LBK

Thanks for Your reply. Actually I have already achieved it by using javascript on my VF page. What i was searching is about to achieve it without using Javascript. After all searching and all, I understood that it can be achieved by javascript quite easily.The link you provided helped me a lot

Thank you