Newer
Older

The contact page allow a user to send mails to the support team (cf. [email service](../../services/mailer.md)).
User information (firstname, lastname, email) is automatically filled whenever the user is logged in. Otherwise, the task is left to the user.
The message subject can be either chosen from a dropdown list or typed in (custom subject).
The component can read the `subject` query parameter from the current url. If such a query parameter is not trivial, then the component uses its value to sets accordingly the `subject` value of the form. The `Contact Us` feature available on the information tab of each dataset page relies on this fonctionnality. Indeed, when the `Contact Us` button is clicked, the user is redirected to the contact page with a prefilled `subject`, equal to the name of the visited dataset.
In order to activate the submit button, the user has to accept some terms, by checking the dedicated box at the bottom of the form.