g_form.setValue onSubmit client Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2016 11:38 AM
Hi
I am trying to set values of the field on submit with the response which i get from my SOAP call and i am able to see that in alert.
but i am not able to set that to my string fields can you please let me know what am i doing wrong in below statement.
function onSubmit()
{
pdetail = *******************
alert(pdetail);
g_form.setValue('pallete_detail', pdetail);
g_form.setValue('palletesource', "pdetail");
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2016 11:40 AM
Hi Nanda,
Is the field column name correct. pallete_detail?
If it is custom field it should be u_pallete_detail. Can you right click on field and check for show XXX i.e the column name of the field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2016 11:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2016 11:45 AM
Hi pradeep,
Yes, my field values are correct. i dont have any u_ in front of those fields.
Will the g_form.setValue work on submit?
Thanks,
Nanda

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2016 11:46 AM
Yes. Can you please paste your script here.