unique apply form based on category of job opening – how do we do this?

unique apply form based on category of job opening – how do we do this?

Regarding the career webpage:  we wish to display a unique apply form based on the type of job opening which is posted.

For example, if we post a job opening for "sales manager", the apply form should ask questions like:
"how many customers did you sell to last year?"

If we post a job opening for "software engineer", the apply form should ask questions like:
"what programming languages do you know?"

And of course, the answers provided by a candidate should be stored in that candidate's record.

It's also important that the HR manager who is creating the job opening can choose which apply form template should be used with each job type.

How do we do this?

We already tried creating "web forms" on the careers page, but we do not see a way to link web forms to job openings.