PDF form displays image from URL on submit?

Hi,
I am trying to make a fillable PDF form using LibreOffice that does three things:

  1. has a file picker feature to add an image to the form.
  2. has a text entry box that posts to an api. The API returns a QR code which I need to show up in the form when I hit submit.

Is this possible and if so how to do so?