Home › Forums › Classic DFFS › Rules based on Content Type not working (WSS 3.0)
- This topic has 5 replies, 2 voices, and was last updated 9 years ago by Alexander Bautz.
-
AuthorPosts
-
-
October 27, 2015 at 11:28 #8989
Hi!
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: ContentTypeChoiceI checked in Sharepoint Manager 2007 that this column has internal name ContentType.
DFFS backend 4.305
SPJS-utility 1.21
CSS version: 4.02
Sharepoint 2007 – WSS 3.0Attachments:
-
October 27, 2015 at 17:50 #9029
Hi,
In which form are you trying to use the ContentTypeChoice (the same columns, just named differently in DFFS)?Alexander
-
October 27, 2015 at 18:36 #9037
Hi!
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 😉
Regards, Bullvan
-
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.
Alexander
-
October 29, 2015 at 12:06 #9107
Hi!
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?TIA
Regards- This reply was modified 9 years, 1 month ago by jacek.bulwan.
-
November 2, 2015 at 21:37 #9166
You should be able to use this variable and the trigger “custom javascript function”:
spjs.dffs.beforeProperties.ContentTypeChoice
Alexander
-
-
AuthorPosts
- You must be logged in to reply to this topic.