Need to multiply 2 fields on portal
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2023 10:08 PM
Hi Team,
we have two fields :
number of request (single line text) and capacity (single line text).
we need to multiply these and set in capacity only once.
trying the below code
but this is running on a loop.
please help me with the code.
var res = parseInt(g_form.getValue('number_of_requests')) * parseInt(newValue); alert(res); g_form.setValue('capacity', res); |
So when number of request given 40 and capacity given 3 when user take off the cursor it should multiply and set as 120.
the above code should not trigger again (whereas not in a loop)
Please help!
Thanks!
Sri
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2023 11:35 PM
Hi Anand,
Please find the updated code:
still getting a error on portal with wrong entry.
Please help!
Thanks,
Sri