October 27, 2015 at 11:28 #8989
I noticed that DFFS is not showing Content Type field on a list in Sharepoint 2007 (WSS 3.0).
I have a custom list with multiple Content Types.
Issue is that my rules based on Content Type don’t work, so I tried to show this column to check if CT is ok, and here is the error I am getting:
This field is not in the current content type: ContentTypeChoice
I checked in Sharepoint Manager 2007 that this column has internal name ContentType.
DFFS backend 4.305
CSS version: 4.02
Sharepoint 2007 – WSS 3.0
October 27, 2015 at 17:50 #9029
In which form are you trying to use the ContentTypeChoice (the same columns, just named differently in DFFS)?
October 27, 2015 at 18:36 #9037
Good question 😉 We were testing this on NewForm and that was where the error occured. On EditForm it works fine so I suppose it is “by Design” – this column is absent in default NewForm – am I right? 😉
In this case if we need to hide some Tabs based on chosen CT probably custom JS script will be needed – i.e. geeting CTID from browser’s address bar and based on its value hiding some Tabs/other elements…
Do you have other idea to accomplish this (hiding DFFS Tabs based on CT)?
Thanks for a good question 😉
October 27, 2015 at 18:50 #9041
Yes, the column is not found in a default NewForm, but is selectable in DFFS backend. This calls for and easy misunderstanding.
You can use a trigger looking at the “ContentTypeId” in the query string of the URL – look at the trigger “URL Query string key equals” in the rules and create rules based on the various “ContentTypeId” strings.
October 29, 2015 at 12:06 #9107
Trigger on ‘URL Query string key equals’ works fine, thanks! How about DispForm? There’s no info about CTID in URL. We think to use EventReceiver to copy info about CT to some custom filed.
Do you have other idea, how to take info about CT in Dispform in DFFS?
- This reply was modified 5 years, 9 months ago by jacek.bulwan.
November 2, 2015 at 21:37 #9166
- You must be logged in to reply to this topic.