Page 1 of 1

Text format

Posted: Fri Feb 28, 2014 7:16 pm
by Fike
First of all, great work with nuBuilder Pro! It's simply awesome!

I am creating a new application with it but I had a problem when choosing the format '10,000.00' for a text field. When I entered a numbre it was changin the value to 'NaN' instead of formatting it.

I replaced the line 220 of nuformat.js file from:

Code: Select all

return Number(formattedNumber).toFixed(nuFormats[f].format); 
to:

Code: Select all

return formattedNumber
Now it is working fine for this specific text format. However, I don't know whether this could affect some other text formats. If I notice something is going wrong with other text formats, I will report it here.

KInd regrads,

Fike

Re: Text format

Posted: Fri Feb 28, 2014 10:17 pm
by doubleoh0
This is a good question that leads to another I wanted to ask, and that is if there is an ability to add custom format such as money or phone numbers

Re: Text format

Posted: Tue Mar 04, 2014 3:18 am
by admin
Thanks Fike. I have put your fix on github.

doubleoh0 you can do custom formatting with Javascript on the Events Tab of an Object..
Capture4.PNG
Steven

Re: Text format

Posted: Tue Mar 04, 2014 5:42 am
by Fike
I am glad I could help.

Kind regards,

Fike

Re: Text format

Posted: Tue Mar 04, 2014 5:50 am
by admin
Fike,

Actually I found a problem with it but its all good now I think.

Thanks

Steven