[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 973
  • Last Modified:

sharepoint 2010 formfield diabled dropdown loosing value on postback

Hi I have a diabled dropdown(formfield) in sharepoint. When I submit the form on postback it is loosing it's values. I disable it on client-side using JQuery.

My case is I want to disable a section on form, so using Jquery i apply css readonly on textboxes and add attribute .attr("disabled","disabled") to dropdown.

After post back I see blank dropdown(disabled). May be it has values but Index is set to zero. It should retain the first time binded  selection as form is in Edit Mode.
0
tangoboy
Asked:
tangoboy
1 Solution
 
ivan_vaguninCommented:
I guess dropdownlist value is not posted on server, since it is disabled, that's why it gets lost.
I would advise to use server side code to change FormField mode to Display.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now