Hi
I actually don't think you can bypass that via JS or anything else in the Portals. It will enforce your entity model restrictions.
The only way here is doing the opposite, keeping Optional in the CDS level, and making mandatory via Web Form Metadata for your other pages.
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.