How to reset the reference field after invalid reference error without loosing focus on the field

makesh
Tera Contributor

Whenever an invalid value is entered in a reference field and you hit enter, UI throws an error "Invalid reference" below the field. But it will not reset automatically when we try to clear the field and re-enter the correct value. 

It will only reset when you move the focus out of the field and come back to the field.

This behavior is bit annoying  on the now platform, but works properly in service portal.

Any solution for this behavior? 

find_real_file.png

3 REPLIES 3

Allen Andreas
Administrator
Administrator

Hi,

Are you saying you type in the name of the group in that field, press enter, you see the errorbox message show you, you remove the text from that box and right then, the box doesn't clear?

If so, I can say that on New York this is not occurring. I see you tagged your version as Madrid, but I wanted to clarify the exact steps you are doing to test against this.

Beyond this, I wouldn't recommend using the type and press enter method anyway. Just my 2 cents on that. I know that doesn't resolve this specific issue, but as far as user behavior within the platform, I wouldn't recommend doing that.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi Allen,

Thanks for your reply.

I understand that is not the recommended way, but this is more of a user experience issue. 

This issue is not just for assigned group field but for all the reference fields.

For example in assigned group Field.

1) Enter any assigned group name which is doesn't exist in the system.

2) Hit enter and dont move the control/cursor out of the assigned group field, the UI displays invalid reference error below the assigned group Field.

3) Now try clearing the field without removing the control/cursor out of the field and type in a valid value. 

4) Hit enter again and don't remove the control/cursor out of the assigned group field, the UI still displays invalid reference error below the assigned group Field even though now the value typed in the assigned group field does exists in the reference table.

 

The same functionality works fine in the Service Portal, but not on the servicenow platform itself. 

Just want to mimic the behavior(ajax/dynamic thing) in the servicenow platform as well.

I am also facing the same issue, did u find any solution for that?

 

Thanks,

Bhavana