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

8/22/2022 - Mon
ramuar1981

can you send me cleary about your requirement.
ASKER
PillalamarriVenkateswaraRao

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
Nilang_ETI

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
PillalamarriVenkateswaraRao

Thanks Nilang_ETI.
But 3rd party tools are allowed... :(
Anyway thanks for the good resource.
Any idea with SPD 2007 ?
Thanks,
Rao.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
zephyr_hex (Megan)

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.
ASKER
PillalamarriVenkateswaraRao

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.