Prefilling Required Campaign Information
When you have successfully embedded your first widget, you will need to prefill part of the campaign form.
HAPI Elements prints a log in the console, telling you the following:
Prefilling Job Page and Application URLs
You will need to prefill the following values as part of the campaignForm
with type CampaignCreateForm
in this file:
postingDetails.jobPageUrl
postingDetails.applicationUrl
An example on how to do that can be found on Prefilling Campaign Order Form recipe.
Prefilling UTM Codes
You will also need to (unless you want to use the default UTM codes we have) set your UTM codes. You can read the Customizing UTM (Tracking) Codes recipe to learn how to do that.
Prefilling other campaign details
All the properties of campaignForm
campaign
state submodule can be prefilled, with some exceptions:
Typescript definition of CampaignCreateForm
can be found in this file
We overwrite value of paymentMethod
in campaignForm
when the campaign consists of only "contract"s and there is nothing to pay for. In this case we enforce ATS Managed Payment Method.