need aleternative for 'This.Now' function as it is only working on portal not on backend for catalog item

anshuman1
Giga Contributor

Hi All,
I have been looking to find an alternate function for 'this.NOW.' as this is only working on portal not On backend.

Since, This is used in most of the client scripts in catalog item it is very difficult to rewrite all of them. Hence, I am looking to find an alternate function which I can replace it with and which works on both(front and back end).

Any suggestions will be helpful,

Thank you in Advance!

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

where are you using this?

can you share an example?

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

anshuman1
Giga Contributor

Yes! Below is the example


if (this.NOW.projectedCostEstimate)

projCostEst = parseFloat(this.NOW.projectedCostEstimate);

 

 similar to above condition it is been used in various client scripts