Workspace related list inline edit bypasses server-side validation entirely

MelchiorNow
Tera Expert

Title: Workspace related list inline edit bypasses server-side validation entirely

Description:

In a Zurich workspace, inline editing a field in a related list completely ignores server-side validation. Any value can be saved without restriction or error feedback, regardless of the validation logic in place.

Observed behavior:

We have validation logic on a custom table. When editing from the classic backend form, everything works as expected — invalid values are blocked and error messages are displayed. When editing the same field via inline edit in a workspace related list, the save always goes through with no error shown.

What we've tried:

  • Before Business Rule with setAbortAction(true) + gs.addErrorMessage → value is saved anyway, no error displayed
  • onCellEdit client script with callback(false) → save is blocked but no error message is shown to the user
  • onCellEdit with g_form.showFieldMsg / g_form.addErrorMessage → g_form not available in workspace context

Question: What is the supported mechanism to enforce server-side validation AND display a meaningful error message to the user during workspace related list inline edit in Zurich?

Release: Zurich


2 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron

@MelchiorNow 

onCell edit doesn't work in workspace

Before update business rule should work fine

Is the BR and the table in same scope?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

Ankur Bawiskar
Tera Patron

@MelchiorNow 

it worked fine for me

I was able to stop the update in related list in SOW

See below

AnkurBawiskar_1-1783603235068.png

 

AnkurBawiskar_2-1783603244837.png

 

AnkurBawiskar_0-1783603223629.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@MelchiorNow 

onCell edit doesn't work in workspace

Before update business rule should work fine

Is the BR and the table in same scope?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Ankur Bawiskar
Tera Patron

@MelchiorNow 

it worked fine for me

I was able to stop the update in related list in SOW

See below

AnkurBawiskar_1-1783603235068.png

 

AnkurBawiskar_2-1783603244837.png

 

AnkurBawiskar_0-1783603223629.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

MelchiorNow
Tera Expert

Thank you! That's exactly the issue