The Zurich release has arrived! Interested in new features and functionalities? Click here for more

is there any possiblity to run onLoad on list?

Akki1
Tera Contributor

Hi,

I have a onLoad Client scripts which concats two values and displays on the form but It runs only on form but I want it for list also. Anyway i can achieve this?

I know using a BR will solve this.But I don't want to use it as I do a huge data upload through data sync and I have to deactivate the BR's during it to avoid performance issues on prod environemnt

3 REPLIES 3

Manmohan K
Tera Sage

@Akki1 

 

There is no load client script in list view.

You have to make database level changes for it  to reflect in list view 

Can you explain your business use case

Akki1
Tera Contributor

@Manmohan K Thanks

I have two fields 'u_updated' , 'u_update_by'

I h'm using another function field 'Modified' in the function I have written concat('u_updated','/','u_update_by').

It's working but the date format is different on the form according to user preference u_updated by is shown as 22/06/2023 but in the function field its shown as 2023-06-22. And when I change user date format in user preference settings 'u_updated changes accordingly but the function fieldstill remains same. And u_updated is not to be shown on form

 

I couldn't make it work with function field so used onLoad script and achieved.Now problem is list view is getting empty.

Sagar Pagar
Tera Patron

Hi @Akki1,

No. It is not possible to run onLoad scripts on lists level.

 

Thanks,
Sagar Pagar

The world works with ServiceNow