The “Captive portal” function is not useful for you. It is for creating a portal on the router.
To understand it better, hotel wifi create the portal using such functions.
When you connect to hotels that has captive portal, that is another thing. Do not need the above function.