How to set custom object Text Field in Javascript API
Summary
How to set custom object Text Field in Javascript APIContent
Hi All,
I am trying to set a custom object field in javascript API. The value is not set in a particular field. Could anyone please help me to solve the issue?
Kindly find the attached snippet. I have to get the custom object and need to set the field values in the respective custom object text field.
Regards,
Muthu
Code Snippet
function muthu() { var fromVal=$("#fromVal").val(); var toVal=$("#toVal").val(); //var co = window.external.GetCustomObject(CO,x_co_cnc); var co = getCustomObject('CO', 'x_co_****'); alert("from Val:"+fromVal); alert("to Val:"+toVal); //co.SetCustomFieldByName("c$x_from", "fromVal"); co.SetCustomFieldByName("c$x_from", fromVal); co.SetCustomFieldByName("c$x_to", toVal); }
0