Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am trying to set a conditional formatting on a drop down list whose data source is a SharePoint List. The Info Path form is opened in a browser.

The conditional formatting goes something like this

Field Name does not contain Value[Name = "PreferredName"]

The Vale[Name = "PreferredName"] comes from GetUserProfileByName where the parameter (accountname) is left blank so I get the current user.

With the condition, I am trying to say if Field Name does not contain the current user's name then disable this control, but it is not working?

Is it possible to use "does not contain" with a drop down list? Will it check all the values in a drop down list against Value[Name = "PreferredName"]?

share|improve this question

closed as off topic by Alex Angas Jun 2 '11 at 5:39

Questions on SharePoint Stack Exchange are expected to relate to SharePoint within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
could you show your code example? –  Nick Hadlee Aug 15 '10 at 19:27
    
There is no code involved just setting properties. I took some snapshots of the settings Drop down properties imagebin.org/109815 Conditional formatting: imagebin.org/109816 –  i.jk Aug 15 '10 at 20:08
add comment

Browse other questions tagged or ask your own question.