Avatar of PillalamarriVenkateswaraRao
PillalamarriVenkateswaraRaoFlag for India

asked on 

How to convert Choice Field to Label in Custom NewForms Using SharePoint designer

How can I conver Choice Field to Label in Custom NewForms.
In EditForms we can do by using SPD 2007. Any Suggestion please .

Thanks,
Rao.
Microsoft SharePoint

Avatar of undefined
Last Comment
PillalamarriVenkateswaraRao
Avatar of ramuar1981
ramuar1981
Flag of India image

can you send me cleary about your requirement.
Avatar of PillalamarriVenkateswaraRao

ASKER

Hi ramuar1981,
I will do most of my customization with SharePoint Designer. Some times we need to go for Custom Forms instead of built in pages in list (like Allitems.aspx, NewForm.aspx, DispForm.aspx, EditForm.aspx).
So If I build the custom Newform page then Some of the fields need to be label instead of original Data type.
For Example in my list say ABC I have Title (Single Line Of Text), Project Name (Single Line Of Text), Project Completed % (Number), Status(Choice).
So I created a Custom New Form then I add Custom List Form to my New Custom New Form. So I will get all the fields with original data types.
But I want to Show my Status field values as Label instead on Choice. We have an option to change Choice to lable but it is not showing value in the form at runtime ...
Please let me know if anything is not clear ...
Thanks,
Rao.
ASKER CERTIFIED SOLUTION
Avatar of Nilang_ETI
Nilang_ETI
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Thanks Nilang_ETI.
But 3rd party tools are allowed... :(
Anyway thanks for the good resource.
Any idea with SPD 2007 ?
Thanks,
Rao.
you can put the newform page in split code/design view.  my suggestion is to create a new label field so you can see the code for label fields.  then click on the field you want to change, and modify the code so it's a label.

sorry i can't be more specific.  i don't have access to sharepoint in order to give you the exact code.  but this is how i used to do it.
Hi zephyr_hex,
Actually in NewForm it is not working. But the same concept is working in EditForm.
The label is binding to Data Field but it is not showing the value ... :(
I tried your way also but no luck.
Thanks,
Rao.
Microsoft SharePoint
Microsoft SharePoint

Microsoft Sharepoint is a software platform and family of software products used for collaboration and web publishing combined. These capabilities include developing web sites, portals, intranets, content management systems, search engines, wikis, blogs, and other tools for business intelligence and collaboration. SharePoint has a Microsoft Office-like interface, and it is closely integrated with the Office suite.

40K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo