g_form.getValue not working in native view but working on Agent workspace

ACDD
Tera Contributor

We have two Onchange client script:

1. Onchange of state : to get value of a field, and based on value take decision to clear field value or not, this is where we are using g_form.getValue but this is not working in native view but working on Agent workspace. This will work onload as well.

  • 2. Onchange of state : to set the value of field based on state. This is where we are using g_form.setValue but this is not working in native view but working on Agent workspace.This will NOT work onload.
  • Fir both client scripts isolate script is true and UI type is All.
2 REPLIES 2

yuvarajkate
Giga Guru

In native view, the field value might not be available immediately if the script is trying to execute before the form is fully loaded. Agent Workspace may handle asynchronous data loading differently, allowing it to work there but not in native view.

 

Hope this helps.

 

ACDD
Tera Contributor

@yuvarajkate how can we handle this situation for native view?