Describe the issue
When a user creates a new Audit File Export Document through the "Audit File Export Doc. Card" page (5267), any value they select for the "Audit File Export Format" field is overwritten when the record is inserted.
I suggest to check if "Audit File Export Format" is already set before overwriting it in OnInsert.
Expected behavior
When a user manually selects a value through the UI, that value should be preserved. The default from setup should only be applied when:
Creating a record programmatically without specifying the format
The user hasn't already selected a value
Steps to reproduce
Open page 5267 "Audit File Export Doc. Card"
Create a new record (user sees blank card)
Select a value for "Audit File Export Format" field
Move to another field or save the record
The selected value is replaced with the default from setup
Additional context
No response
I will provide a fix for a bug