Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

sharepoint 2010 formfield diabled dropdown loosing value on postback

Posted on 2012-04-03
1
Medium Priority
?
970 Views
Last Modified: 2012-04-18
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
Comment
Question by:tangoboy
1 Comment
 
LVL 18

Accepted Solution

by:
ivan_vagunin earned 1000 total points
ID: 37802807
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
Screencast - Getting to Know the Pipeline
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question