Different link on different pages in menu-component

If I have a component-menu, can I set a different link on different pages in one button? Maybe through variables somehow?

My button should lead to a form at the end of the page. there is a form on each of the pages.

If the button needs to go to a form on each page, I would recommend setting the button to the section with id form, then give your section containing the form the id as well.

Otherwise you can also use component properties to customise what the button link sends you to. Components - Webflow University Documentation