- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2023 03:47 PM
In my client script, please refer the following original script where I am using a client script to set value to a field. When the currency value is above or equal to $10,000,000.00 it sets the value to exponential notation value (1.0E7) i.e., for $10million it's setting it to $1.07. Any value below $10m work fine. For debugging, I have tried convert the value using parseFloat or float, var v_float = parseFloat(v_cvalue), variable v_float shows the correct value but does not work.
.
function getFunded(response) {
v_cvalue = response.responseXML.documentElement.getAttribute("answer");
g_form.setValue('tot_funded_amt', v_cvalue);
}
Screen shot for debugging g_form.addInfoMessage('v_cvalue:'+v_cvalue) and g_form.addInfoMessage('v_float:'+ v_float); as below:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2023 07:42 PM
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2023 06:22 PM
Hello @mkm1
Greetings!
This generally happens when the type is number.
Can you try with
v_cvalue = response.responseXML.documentElement.getAttribute("answer").toString();
Please hit the thumb and Mark as correct based on Impact!!
Kind Regards,
Ravi Chandra.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2023 07:14 PM
Hi Ravi, Thanks for your suggestion. No this didn't solve the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2023 07:42 PM
}