Allow Only Number/Decimal values In a Number/Text Field Using JavaScript in Oracle APEX
1) Create a Region.
2) Create an Item in the page (Type: Text Field or Number Field).
3) To allow only Numbers, paste the below code in the Page -> Execute When Page Loads Section.
- Note: Replace P30_NUMBER_FIELD_ITEM with your Item name.
4) To allow only Decimal values, paste the below code in the Page -> Execute When Page Loads Section.
- Note: Replace P30_DECIMAL_FIELD_ITEM with your Item name.
Please click here for DEMO
Happy CODING !!!
Thank you :)
How to reduce decimal number
ReplyDeletecongnaFmelba Paula Evans click
ReplyDeletepilinunfrock
Hey man... thanks for sharing, I really appreciate! :-)
ReplyDelete