Input parameters to a Script Include question

harinalamalapu
Giga Expert

I am trying to pass an input parameter to a Script Include which is being called from a default value field of a change_request table. Provided below the code used in the default value field, but I noticed that 'current.type' is being passed as empty to Script Include even though the value of the type field is 'Normal' on the form. Why?

javascript:new ABCClientUtils().testFunction(current.type);

5 REPLIES 5

harinalamalapu
Giga Expert

yes Pradeep. As soon as the record created from the record producer and launched in the platform in the Draft state, the field type is set to 'Normal', but am I expecting the default value even before a value is assigned to type field? Scenario is, Record producer creates a record, I am able to see the type set to 'Normal' at this state, however I am expecting the default value to display at the same time.