Auto Populating not working in platform view

Avee90
Tera Contributor

Hello All, 

     I've a requirement to populate a List collector variable based on a selected reference variable related list records . I wrote a script include and onChange Client script to achieve this. This is working fine in Service Portal however not working on Platform view(Using TRY IT UI Action On record producer).

Thanks in Advance!

6 REPLIES 6

Sagar Pagar
Tera Patron

Hi @Avee90,

 

Could you please share more details, so that it will be easy to understand the exact issue?

 

Thanks,
Sagar Pagar

The world works with ServiceNow

Sure, I've record producer in that there are two variables. one is a reference variable(A) and second is a List collector variable(B - Referring to Group). So, the table which I referred in A variable have a related list(Group). So,  whenever I select any record in A variable then A variable's related list's groups should be populate in the variable B. 
I wrote a script include and Client script to achieve this. This is working fine on Service Portal mean the B variable populated the groups that A variable related list have.
But this is not working in Platform View( TRY IT on the Record producer)

Hi @Sagar Pagar ,

    The requirement is to populate specific related records in the List collector variable. I've added the script include and OnChange client script. 

Thanks in Advance!

Ankur Bawiskar
Tera Patron
Tera Patron

@Avee90 

I hope your client script is marked UI Type - ALL?

if not then it won't work in classic native view

Did you check if script include got called when you clicked "Try It" ?

what debugging did you do?

share screenshots of client script and script include

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader