- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 07:17 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 09:36 AM - edited 11-20-2023 09:37 AM
Depending on the field types, you will want to use with "getDecimalValue" (probably) or "getIntValue" to retrieve the value of the fields as numbers and then do your calculation. The problem is parseFloat is tripping up on the space between "10" and "000" and only returning 10 as the result in your example. So (50 * 10) / 100 = 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 09:51 AM - edited 11-20-2023 09:52 AM
The field type should be same for all 3 variable.
u_estimatif ,u_taux_de_r_ussite,u_estimatif_pond_r
add the replace() method and try again.
var valueA = g_form.getValue('u_estimatif').replace(/,/g,'');
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 09:51 AM - edited 11-20-2023 09:52 AM
The field type should be same for all 3 variable.
u_estimatif ,u_taux_de_r_ussite,u_estimatif_pond_r
add the replace() method and try again.
var valueA = g_form.getValue('u_estimatif').replace(/,/g,'');
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2023 12:35 AM
@AshishKM merci pour votre aide maintenant cela fonctionne
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2023 06:34 AM
Merci d'avoir marqué la solution acceptée et utile, heureux de vous aider et merci spécial à Google Translate.
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution