Issue with File Attachment Field Navigating to Another Section

Vengadeshgiri
Tera Contributor

I have a form with two sections:

  • Section 1 contains a field of type File Attachment.
  • Section 2 contains two mandatory fields.

When a user uploads a file using the File Attachment field in Section 1, the file uploads successfully, but the form automatically refreshes/saves and navigates to Section 2 where the mandatory fields are located.

There are no Client Scripts, UI Policies, Business Rules, or customizations related to this behavior. The File Attachment field was simply added to the form.

Is this expected behavior for the File Attachment field type? If so, is there any way to prevent the form from automatically navigating to the section containing mandatory fields after the attachment is uploaded?

8 REPLIES 8

@Vengadeshgiri 

no you can't as it's OOTB behavior

💡 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

You can not avoid.

If you want (change in design )-  section 2 mandatory fields you can place in Section 1. ,so that after page refreshes, it will look for mandatory fields. and you can see section1 only . Try it.

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

No its not a catalog item.Its a field in backend table

Tanushree Maiti
Tera Patron

Hi @Vengadeshgiri 

 

In ServiceNow, the auto-saving and refreshing behavior when a File Attachment field is populated happens because ServiceNow automatically commits the upload to the sys_attachment table, triggering a form reload.

It is expected OOB feature.

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti