function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
grigri9grigri9 

using javascript remoting to re-render inputfields?

I have a requirement to show/hide "child" inputfields on a page based on the values of parent inputfields. Currently I am doing this with an actionsupport on the parent field that re-renders the child fields when the parent changes. This works fine but it's a bit slow and I was hoping to replace this with javascript remoting.

However, afaik there is no way for me to add/remove inputfields by manipulating the DOM such that they are not part of the form submit. I.E. if someone makes a change to an inputfield and later I hide that field I don't want any page level validation to run on that field or for the changes the user made to be saved.

 

Is there a way to do this or do I need to stick with re-rendering the fields?