This is not really a "problem" per se.
Just use the appropriate script steps to reset the fields then.
With navigation, I didn't just mean navigating there with the script behind the scenes. The other screen needs to show up and then a separate action (like a button press) is needed to return to the original screen so that the custom fields get cleared out.