NathanW
going with the flow Posts:45
|
12-07-2011 05:11 AM |
|
(FYI: I am using version 4.0.10 with the applied SQL to fix the panel sort order issues.)
I have a form (I have tested this a number of times) where I pass in DSParam1 and DSParam2 and I read ID from an SQL bind. All 3 fields are hidden and work fine if I dont use Panels.
If I use Panels you can see in the admin interface that the fields are not being populated with data even though they are configured correctly.
I am using a Panel as a tab and I have the 3 fields at the top of the form question order.
As I say this works fine without using Panels but fails every time you use panels.
If you make the fields textbox and display them on a Panel then they work fine and have the expected data. I have even tried to move the textboxes outside of a panel (so they do not belong on any panel) and again the value of the fields do not contain the data.
Unless I am doing something daft then I think this may be a bug.
Your help would be much appreciated as I have a large tab panel for a client project that the client cant use.
Thanks
Nathan
|
|
|
|
|
Chad Nash Posts:5260
|
12-07-2011 09:55 AM |
|
Hmm... It would certainly seem like a bug, but first time it has been reported (not surprisingly maybe as the panel feature is a new option). This is one we will have to review, we have a few other updates coming out that are a pretty high priority and then hopefully we can review why hidden fields are doing this with Panels. I know hidden fields are added to their own "Panel". I am curious in general if this means ALL hidden fields are not working with panels, this is something I will have to test. If you can easily replicate/not replicate this if you disable Panels then no need to duplicate on our test site, that should be pretty easy for me to replicate. Thanks, Chad
|
|
|
|
|
NathanW
going with the flow Posts:45
|
12-07-2011 10:57 AM |
|
If you want me to set up an example for you I can do that for you, just tell me where you want me to set it up and I will do it. Very simple to replicate. If you create 3 fields, call one DSParam1,DSParam2 and DSParam3. Make DSParam1 a textbox and DSParam2 a hidden field and DSParam3 say another textbox. Call the page with the DSParam1, 2 and 3 on the URL and all works fine and you can see the values. Now create a Panel and add say DSParam3 to the Panel you created. Call the URL again and you will see DSParam1 and DSParam3 have no values. You can see DSParam1 because it is a textbox and does not belong to any Panel but if you reference DSParam1, 2 or 3 in a submit even you will see that none of them have any values.
Also if you set the Panel to show based on role you will see that when you go back in to view the Panel it hasnt saved the roles you ticked and still shows the panel irrespective of the role.
Hope that helps.
Nathan |
|
|
|
|
NathanW
going with the flow Posts:45
|
12-08-2011 12:28 AM |
|
A bit more info that might help. If you create a Pane (I created one called Ignore with a sort id of 9999) and add the hidden fields to that pane they then work ok. The problem appears to be when you dont include the hidden fields in a visible pane.
Nathan |
|
|
|
|
Chad Nash Posts:5260
|
12-12-2011 03:29 PM |
|
Nathan - I tested this again today and was able to confirm something to the extend of what you confirmed... Basically, hidden fields just need to have a sort order that would include themselves within a panel. Before changing this I will have to see if its ever possible that a user wouldn't want a hidden field to be included, because sometimes (for various reasons) they might want hidden fields to be included or not included depending on question events/other panels that are hidden etc... So, at this point I think you just need to make sure that the sort order is between two fields that are included within a panel and it should work just fine. Thanks, Chad
|
|
|
|
|
NathanW
going with the flow Posts:45
|
12-12-2011 09:57 PM |
|
Chad, I fully agree with what you are saying and as long as hidden fields belong to a panel then it works fine. My concern is that by default the hidden fields are placed at the bottom of the screen and visible in the admin area so one would assume they should be working and active. Maybe it would make it better for the user if when using panels the hidden fields are rendered in the panel they belong to (sort order) rather than the bottom of the screen (outside any visible panel range) and possible with them in red or with the word "inactive" when panels are used but the hidden fields dont belong to one. Otherwise I can see new and experienced users getting in a real mess because it is not possible to see visually that the hidden field or fields belong to a specific panel or not. Nathan |
|
|
|
|
Chad Nash Posts:5260
|
12-13-2011 08:55 AM |
|
Ahhh.... Thanks for the clarification, I see what you mean now and how can be confusing. I will add this to the list to research / review. Thanks! Chad |
|
|
|
|