My application is hosted on web. I have a form, in that I have a tabbed table with 2 panes. On the firs pane I have a radio button with values(“Stock” or “NonStock”). When I save the document I am assigning the selected value to the field(PR_SType) on second tab. The field PR_SType is always hidden. When I am trying to access PR_SType field it says
document.forms[0].PR_SType.value is null or not an object.
but actually the value is assigned to the PR_SType field, still it’s giving error.
It looks like you are trying to access the hidden field through javascript. Hidden fields are not available to javascript unless you enable the form property “Generate HTML for all fields”. Enabling this property can have performance impact, if you have large number of hidden fields on the form.
There is an alternative - instead of making the field hidden through field property, hide it using a HTML “hidden” property. This way, field will not be displayed on form, yet accessible by Javascript. Hope this helps !