I have a people picker on my form for the user to insert an approver for the request. The user only needs to enter an approver under certain scenarios. The people picker starts hidden and if the user enters info that requires an approval then the people picker is shown. I do this with a rule and the rule responds correctly. It is not the only control associated to that rule and all the other controls show correctly, but the people picker control doesn't show fully. There is just a thin horizontal gray line that hi-lights blue when you hover over it. You can click into the box (more like a line) when it is blue and type. You can't see anything you are typing because the box isn't big enough. The auto fill box that the people picker control has shows up, but shows up vertically with each letter of the name on separate lines.
I have tried:
The work around that I have in place now (which is absolutely horrible) is to always show the control, and put an empty label over top of it with the same color as the background. When I need to show the control I hide the label and when I need to hide the control I show the label. this doesn't shrink the space when its hidden (since its not really hidden)
I have attached pictures of what I am talking about. One shows just the picker, one shows it when it is highlighted (so you can see it better) the last shows when typing and what the suggestions look like.
Nintex Forms 2010 22.214.171.124
Can you try putting just the people picker control in a panel of its own and then placing the hide rule on the panel and removing it from the people picker itself. This might fix this strange behavior that you are seeing.
I have a crazy question? Does the user really have to pick the approver or couldn't that be handled in the workflow? The workflow could check for the scenarios and a SharePoint list could have the approvers (people pickers). The workflow could pull back the approver needed. You wouldn't need to display the people picker. I did that in one of my solutions. For example, based on the team you pick there would be a specific approver.
Thank you for the response. I just tried that and it is the same result. I've also tried deleting the panel it was in and adding it to another one. I really didn't think that would work but it was worth a shot. I've also tried deleting the people picker and then adding another one and that didn't work either.
This might sound like a strange suggestion but please give it a shot: create a new rule that does the same thing as the old one, but only apply it to the people picker. I have seen different behavior based on there being multiple rules of the same sort before when compared to using one rule on many controls.
Thanks and let me know the results.
I have actually had to do something like that on a different form, so it wasn't that strange of a suggestion. However when I tried it, it didn't work. I also took the css styling off of the control and that didn't make a difference. I've also made sure that the control isn't touching anything because I've seen weird things happen when you things you are trying to hide are touching.
Sounds like you've tried a lot of good suggestions so far. Two last things, that you've probably already tested: did you try moving the control to a different position on the form? And lastly, did you create an entirely different form and try to hide the control there as well with any different results?
PS: What happened when you hide the control using JQuery - did that have any different effect?
NWF.FormFiller.Functions.ProcessOnChange(NWF$("#" + additionalApproverNeeded));
Thanks for all the suggestions!!!