Solved

sharepoint 2010 formfield diabled dropdown loosing value on postback

Posted on 2012-04-03
1
943 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 500 total points
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now