Drupal 8: Redirecting a form based on a field value.
I needed to redirect the user register form based on a role that the user wanted to apply for. To do this, I added a custom submit handler to the register form.
I needed to redirect the user register form based on a role that the user wanted to apply for. To do this, I added a custom submit handler to the register form.
Adding placeholder text to a Drupal 8 form element that is the label of the form can be done in your .theme file with the hook template_preprocess_input().