e.g.when clicking: https://ondemand.url/pun/sys/dashboard/batch_connect/sys/matlab/session_contexts/new
I cannot find any reference to the form.js in the documentation, only references to it in example apps or on the discourse.
When you hit a
You can try something simple like this. This function will be executed when the document is ready (that’s a native web browser event - the page being ready). We typically add all the change handlers at this point. When the document is ready you can query for elements and add change handlers to them as you see fit.
console.log('the page is ready');
Here’s a simple jquery to get the cluster form element by it’s id.
The data that’s available in the
submit.yml.erb is everything that you’ve defined in the form (i.e., you have a
node_type form element, then
node_type variable is available in the
Thanks for the explanation, that helps quite a bit. This also confirms that the
form.js is only processed when the
/new page is hit, vs. every time the form.yml is loaded.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.