Foxit Forms : open rear camera when clicking img form field

On FOXIT PDF EDITOR on WINDOWS, i would like to modify the behaviour of img form field with JS like to directly open rear camera when i am on mobile device :

if this.media = tablet
 then event.target.openRearCamera()
 else event.target.buttonImportIcon()

But i can not find any documents with javascript method/parameter in foxit docs

is there any way to do that ?

looking for documentation but nothing on it