The specific situation this is fixing is that when server-side
validation fails and results in form having non-default values. In this
case the visibility might not be correct and will need to be updated.
Also, we cannot rely on onclick events on radio group to find out the
current value when we are loading - instead we need to actually find
out the currently selected radio button.
Fixes the IsBlank and IsNotBlank conditions as well.
The form throws a CSRF error if left for too long by itself. This is
especially important for long forms.
Use local ping function, as the CMS ping returns 403 when BasicAuth is
enabled.