Pro onlyRun code before and after running a generator
In order to set up the two callbacks, follow these steps:
- Open Fake Data's options page
- Go to Generators -> Default Generators tab
- Find the generator you want to update, and click on the manage icon:
- On the newly opened popup, there are two options that you can enable:
If you want to access the DOM element that is filled by Fake Data, you can refer to
arguments in the code.
Doing the steps described above, will change the setting for all fields that are using the generator you updated. You can also change this setting only for a single field, either through the Fields page, or by clicking on the "Manage Field" option from the context menu.