Dear Sergey,
No format apply in JS formula, which should be followy format as I setup in field info (0/,/,) as attachment below:
And the result still plain!! see below: (see field Tertulis)
Please help, this is very important in my app
Regards,
Fahmi Salim
NO FORMAT IN JS FORMULA
-
- Sponsor
- Posts: 320
- Joined: 12 May 2015, 08:33
- Name: Fahmi Salim
- Location: Indonesia BSD City
- Company Name: AIMan
- Contact:
- support
- Site Admin
- Posts: 6222
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: NO FORMAT IN JS FORMULA
Format will be apply in listing or info page when you output value.
We can't use php setting to format js number.
We can't use php setting to format js number.
-
- Sponsor
- Posts: 320
- Joined: 12 May 2015, 08:33
- Name: Fahmi Salim
- Location: Indonesia BSD City
- Company Name: AIMan
- Contact:
Re: NO FORMAT IN JS FORMULA
no way to solve it? because my user always have mistaken when they input number with alot of zero. I wish this new feature in ver 2.2 will help my problem...unfortunately still cant. Do you have any suggestion?
Regards,
FS
Regards,
FS
- support
- Site Admin
- Posts: 6222
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: NO FORMAT IN JS FORMULA
Sorry, don't have any suggestions for you at the moment.
- support
- Site Admin
- Posts: 6222
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: NO FORMAT IN JS FORMULA
Ok, special for you, I have found the way how to use number format in form for this field type.
Files from archive replace to
js/main.js
includes\classes\fieldstypes\fieldtype_js_formula.php
Then click ctrl+f5 to reset cache for main.js and try again.
Please test with different number formats and let me know if it works ok now.
Updated archive (loaded wrong file)
Files from archive replace to
js/main.js
includes\classes\fieldstypes\fieldtype_js_formula.php
Then click ctrl+f5 to reset cache for main.js and try again.
Please test with different number formats and let me know if it works ok now.
Updated archive (loaded wrong file)
- Attachments
-
- fix3.zip
- (10.4 KiB) Downloaded 168 times
-
- Sponsor
- Posts: 320
- Joined: 12 May 2015, 08:33
- Name: Fahmi Salim
- Location: Indonesia BSD City
- Company Name: AIMan
- Contact:
Re: NO FORMAT IN JS FORMULA
first show some error as picture below:
and in info page show as field, so I have two same number in info page
But thanks for your support
Best Regards,
Fahmi Salim
and It work well after browser history clearedand in info page show as field, so I have two same number in info page
But thanks for your support
Best Regards,
Fahmi Salim