Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Uppy procedure & form data

Questions related to customising nuBuilder Forte with JavaScript or PHP.
yvesf
Posts: 315
Joined: Sun Mar 14, 2021 8:48 am
Location: Geneva
Has thanked: 87 times
Been thanked: 11 times

Re: Uppy procedure & form data

Unread post by yvesf »

@vario,

in your code on the javascript side, you need to keep the parameter session_id in the uppy.setMeta; it doesn't work if you don't have that.

Code: Select all

uppy.setMeta({ procedure: 'NUUPLOADFILE_TEMPLATE', rv_patient_id : '#rv_patient_id#', rv_date : '#rv_date#' , session_id: window.nuSESSION })
Many thanks Kev1n for this huge piece of work.

Yves
vario
Posts: 148
Joined: Mon Dec 05, 2011 12:23 pm
Location: Newton Abbot, UK
Has thanked: 1 time
Been thanked: 1 time

Re: Uppy procedure & form data

Unread post by vario »

@yvesf,
I used Kev1n's method of doing the set Meta on 'file-added'. After some debugging (I'm getting better at this stuff!) I see a "not exists" error for the select object when using the original setMeta method.
Post Reply