You need to sign in to do that
Don't have an account?
Nordberg
JavaScript with Visual Force
Hello All,
I am realatively new to both JavaScript and VisualForce. I am looking to dynamically change the type of field within a page based on the value of another field.
For example
if document.getElementById('D1') = "1/1/1900" ... Then change document.getElementById('D1I1') from inputField type to outputField.
Does anyone know if this is possible, and if so can help me fill in the holes.
Thanks
JD
I am realatively new to both JavaScript and VisualForce. I am looking to dynamically change the type of field within a page based on the value of another field.
For example
if document.getElementById('D1') = "1/1/1900" ... Then change document.getElementById('D1I1') from inputField type to outputField.
Does anyone know if this is possible, and if so can help me fill in the holes.
Thanks
JD
My colleague Ryan Marples has a great blog post for enabling inline editing within Visualforce. This shows an example of how to switch between an input field and an output field.