Hi support,
This is a bug report and the bug is that onclick doesn´t work properly in queries. The problem is that when the onclick even is fired I get error "VM5844 0:2 Uncaught SyntaxError: Unexpected token }" and the onclick process I have assigned is not executed.
PS: I am using the latest build.
Here is a sample BSV and steps to reproduce:
- Unzip and import BSV
- Place app in testing mode and log in
- Open RegularUser object for logged in user and add the following to the "Checkbox" attribute: <input type="checkbox" onclick="AwareApp.startProcess('Checked', 'main')">
- Reload VP and now you will see the checkbox in the main frame "Checked" query
- Check the checkbox and at the same time look at the browser dev tools to see error message: "VM5844 0:2 Uncaught SyntaxError: Unexpected token }"
PS2: The same bug rears it´s behind when using an IMG tag in the query so it´s not the input type checkbox causing this (and also if using the EXACT same code snippet for the checkbox with onclick etc. in a content panel it works as it should so it´s something in the query code specifically).
Thanks