Prerequisites before proceeding to next page

Hi, how do I make a prerequisite before allowing users to access the next page. For an example, for online shopping app I would require users to input their CC info before submitting their order or require them to click a color and size for a product before they can add to cart.