The CreatorCon Call for Content is officially open! Get started here.

How do I access sysID of any another cell in onCellEdit client script?

Mahesh78
Tera Contributor

How do I access sysID of another cell in onCellEdit client script? , For e.g in Incident form if i am using onCellEdit on priority, but i want to access sysID of Short description. Since we cannot use g_form in onCellEdit

3 ACCEPTED SOLUTIONS

Yousaf
Giga Sage

Hi Mahesh,

I dont think we can do that with onCellEdit(). Purpose of onCellEdit() is usually to restrict user to save record if someone tries to change the Value of certain field from list view. We cannot do much with onCellEdit().

Another approach will be to use Business Rule to get the sys id of the field you want. 

Mark Correct or Helpful if it helps.
Thanks,

Yousaf


***Mark Correct or Helpful if it helps.***

View solution in original post

Akash Rajprohit
Mega Contributor
Hi Mahesh, I dont think we can do that with onCellEdit(). Purpose of onCellEdit() is usually to restrict user to save record if someone tries to change the Value of certain field from list view. We cannot do much with onCellEdit(). Another approach will be to use Business Rule to get the sys id of the field you want. Mark Correct or Helpful if it helps. Thanks,

View solution in original post

Hitoshi Ozawa
Giga Sage
Giga Sage

Hi Mahesh

In the first place, I don't think Priority can't be changed .

Second, sysIDs will return the sys_id of the record. That is, sysIDs will be the same for cell "Priority" and "Short Description".

If the question is on how to change value of other cell in the list, check the following thread.

https://community.servicenow.com/community?id=community_question&sys_id=a31bf7f7db8a405014d6fb243996...

View solution in original post

4 REPLIES 4

Yousaf
Giga Sage

Hi Mahesh,

I dont think we can do that with onCellEdit(). Purpose of onCellEdit() is usually to restrict user to save record if someone tries to change the Value of certain field from list view. We cannot do much with onCellEdit().

Another approach will be to use Business Rule to get the sys id of the field you want. 

Mark Correct or Helpful if it helps.
Thanks,

Yousaf


***Mark Correct or Helpful if it helps.***

Mahesh can you close the thread by marking my answer correct or helpful if it is helpful for you  


***Mark Correct or Helpful if it helps.***

Akash Rajprohit
Mega Contributor
Hi Mahesh, I dont think we can do that with onCellEdit(). Purpose of onCellEdit() is usually to restrict user to save record if someone tries to change the Value of certain field from list view. We cannot do much with onCellEdit(). Another approach will be to use Business Rule to get the sys id of the field you want. Mark Correct or Helpful if it helps. Thanks,

Hitoshi Ozawa
Giga Sage
Giga Sage

Hi Mahesh

In the first place, I don't think Priority can't be changed .

Second, sysIDs will return the sys_id of the record. That is, sysIDs will be the same for cell "Priority" and "Short Description".

If the question is on how to change value of other cell in the list, check the following thread.

https://community.servicenow.com/community?id=community_question&sys_id=a31bf7f7db8a405014d6fb243996...