Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Text format

Post Reply
Fike
Posts: 79
Joined: Thu Oct 20, 2011 9:13 pm

Text format

Unread post 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
doubleoh0
Posts: 5
Joined: Tue Feb 25, 2014 5:47 pm

Re: Text format

Unread post 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
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Text format

Unread post 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
You do not have the required permissions to view the files attached to this post.
Fike
Posts: 79
Joined: Thu Oct 20, 2011 9:13 pm

Re: Text format

Unread post by Fike »

I am glad I could help.

Kind regards,

Fike
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Text format

Unread post by admin »

Fike,

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

Thanks

Steven
Post Reply