-
Your close... you need to use "and" instead of "or". If you use OR, it will ALWAYS hide because the current user will never be equal to all 3 fields unless all 3 fields are identical.
currentUser != user1 AND currentUser != user2 AND currentUser != user3 THEN hide control.
-
You have some sort of click event handler that gets called when you click the button... the code inside there is calling your submit code, right... so add a parameter to the submit function and pass it the button name to it:
pseudo code, not actual code:
ButtonEventHandler(...)
{
...
-
Great! Glad to hear you got it working!
-
Seems like there was a way to default it to a certain choice and not offer the user a chance to change it. I don't have time to look into it right now... but I'm sure you could do this.
-
Yes, those examples were written before InfoPath 2007 existed. However, If you are familiar with coding you should be able to convert from JScript to C# pretty easily. You can also still use JScript in IP07 (if you really want to).
-
A template part adds nodes to your schema... So if you just populate the value of the correct node, it will display in the view.
However, if you dropped the same template part into multiple views, I haven't tried this recently but seem to recall that what you will end up with is new schema for each instance of the template part you dropped ...
-
Glad to hear you got it working. Were you able to identify the differences between the generated dataset and the one you created manually--what might have caused the issue?
-
InfoPath includes a "Choice Group" control. That is what you need here.
-
There can be a couple of issues here:
1. You could have a non-repeating node in your repeating table which is being populated. In this case, it, of course, will always show the same value on every row.
2. If your drop-down is outside the table, and your rule populates a node in the table, then you will always get all rows populated with the same ...
-
What code are you using to enumerate? Its most likely a problem there. The whitespace should not be affecting you if your XPath is set up correctly.