Related list new button taking to some other table

Vedavalli
Mega Sage

Hi
I'm having xyz table and abc is related list to that table so if i click on new button of abc related list it's taking me to def table .. how to stop it when i click on related list abc new button it should take me to abc new record

3 REPLIES 3

Gangadhar Ravi
Giga Sage
  • Check if there is any onLoad scripts running on the related list table.
  • also review if there is any customizations to the New button.

Please mark my answer correct and helpful if this works for you.

Apurva Jogal
Kilo Sage

Can you check which UI action is actually working for the Related List? 
Check relationships and associated table with the UI action. 
That might help you with where to do the changes to achieve the desired outcome

sachin23nas
Tera Guru

Hi @Vedavalli ,

This happens because the abc table extends the def table (table inheritance).

When you click New from the abc related list, ServiceNow opens the base table (def) form if abc does not have its own form layout.

Fix

  1. Go to System Definition → Tables

  2. Open abc

  3. Confirm it extends def

  4. Open abc form

  5. Add at least one section/field and save the form

After creating a dedicated form layout for abc, clicking New from the abc related list will correctly open a new abc record instead of def.


Why this works

ServiceNow falls back to the parent table form when a child table does not have its own form configuration.

If you find this response helpful, please mark it as Helpful and accept it as the solution if it addresses your question—it would encourage me to contribute more to the ServiceNow Community.



Thanks & Regards,
Sachin Narayanasamy