September 25, 2019 at 05:57 #27169
This may be something simple I’m missing, but I would like to name my columns something simple, but display a different name on the form. For instance, I would like to have the real name of my field be “LunchYesNo” while displaying “Will you like to order lunch”? on the form.
Is this possible?
September 25, 2019 at 07:05 #27173MichaelParticipant
i think you have 2 Options:
1.) create yout Field “LunchYesNo” and after you created ist, just rename it to what ever you want –> the field internal name stays “LunchYesNo”. I think this is the best practice to get nice and accessable fieldnames.
2.) you could use custom JS to search an replace the label field. But this only makes sense if you need to change the label dynamicly…
September 25, 2019 at 11:23 #27175
Hey, thanks Michael. I’m aware of the first option. It’s what I normally do. However, i was looking for something that had the same functionality as InfoPath. In InfoPath, you can name your field, but on the form canvas you can write whatever you want.
If those are my best options, I guess I’ll have to make them work. Thanks again!
September 26, 2019 at 15:39 #27181Alexander BautzKeymaster
You can use custom js to change the label, but I haven’t added an option to override it directly in the tab configuration.
Here is an example of how you can do it with custom js: https://spjsblog.com/forums/topic/sharepoint-online-field-renaming/
October 5, 2019 at 02:02 #27235
Good deal. I’ll give this a shot.
October 17, 2019 at 18:59 #27394William SummersParticipant
I know this is old but this kind of worked for me. I had to change all of the double quotes to single and I dropped it in the custom js in dffs.
$(spjs.dffs.fields[‘Field Internal Name you want to find and change‘]).find(‘td.ms-formlabel h3 nobr‘).childNodes.nodeValue = ‘Field name you want changed to‘;
Hope that helps someone
- This reply was modified 9 months, 2 weeks ago by William Summers.
October 18, 2019 at 17:40 #27401Alexander BautzKeymaster
I’m glad you figured it out, but I did include a new builtin function to do this in the latest version of DFFS (v184.108.40.206): https://spjsblog.com/dffs/dffs-change-log/#DFFS_v44413
- You must be logged in to reply to this topic.