You can get this done by combining a few things:
- A draw widget can help you collect a signature. Depending on what form authoring tool you are using the way to do that varies.
- A checkbox to get a yes/no acceptance that you can actually attach logic to (it's kind of tricky to verify if they have actually drawn anything.
- Some logic like the kind discussed here to skip the rest of the form if they don't consent.