How to create a button in List view

Pihu1
Tera Contributor

Hi,

How to create a button in LIST view when user clicked on that it should open a new form to submit a record.

 

Thanks,

Pihu

5 REPLIES 5

Ravi Peddineni
Kilo Sage

Create an UI action and select List banner button option. And use below script:

var url = 'https://<instance-name>.service-now.com/<table_name>.do?sys_id=-1';
action.setRedirectURL(url);

 

Replace instance-name with your instance name and table_name with the name of the table you want to create record in.

Hi Ravindranath,

 

Its not redirecting to New Record form its showing alert as 'No Records selected'

 

Thanks,

Pihu

Can you post the screenshot of the UI action?

Yes, please find below.

find_real_file.png

Thanks,

Pihu