-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting field value in onChange event function #375
Comments
Hello |
Hello @tchapi Sure, it looks like:
My application parse this and retrieve schema and form objects to create a jsonform. Joel |
Is this what you're looking for ? (I'm not sure I've understood your problem TBH)
|
This is a workaround I have used, creating a field for the value and a field for the button. But it's a bit ugly. I would like to set the value of 'server.certificate'. I should simplify the example to better show you waht I would like:
When submit is done I would like to have 'server.certificate' value with the content of the file uploaded. |
Hello
Title saying everything but here is my example:
I have the following field in my jsonform schema:
I would like to set this certificate field from a certificate file which is uploaded by the user so I have written in the form:
The event.target.result witch is displayed calling the alert() function contain the content of the file which has been uploaded.
From this point, how to set the server.certificate value that will then be reported when the form is submitted ?
Thanks
Joel
PS : of course this is an example with a certificate file but any text file is working.
The text was updated successfully, but these errors were encountered: