Jump to:
| Project: | Prepopulate |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hi. I posted this to main forum but noone is biting. Is this a limitation of prepopulate or is there a workaround?
I am using computed field to generate a URL as a field. I am also using prepopulate to fill the fields in the added node this url directs to. The url is correct in the webpage and if cut and pasted.. Works.
The computed value generates a perfect internal url that looks like this..
node/add/collaboration-time&edit[field_collaboration_time_patient][0][nid]=261&edit[field_collaboration_time_encount][0][nid]=344&edit[field_collaboration_time_nursing][0][nid]=384
This works when I paste it into Mozilla or IE. taking me to the new collaboration-time item with all fields prepopulated..
However, when I select "Markup" in computed field as the display choice, the url is mangled and looks like this..
node/add/collaboration-time%26edit%5Bfield_collaboration_time_patient%5D%5B0%5D%5Bnid%5D%3D261%26edit%5Bfield_collaboration_time_encount%5D%5B0%5D%5Bnid%5D%3D344%26edit%5Bfield_collaboration_time_nursing%5D%5B0%5D%5Bnid%5D%3D384
This url DOES NOT work.
What am I doing wrong here. All help greatly appreciated.
Comments
#1
I think I might be onto the problem here.
Computed field puts out the url like this..
<a href="/?q=node/add/collaboration-time%26edit%5Bfield_collaboration_time_patient%5D%5B0%5D%5Bnid%5D%3D261%26edit%5Bfield_collaboration_time_encount%5D%5B0%5D%5Bnid%5D%3D344%26edit%5Bfield_collaboration_time_nursing%5D%5B0%5D%5Bnid%5D%3D384">Schedule</a>It seems that prepopulate doesn't understand that
%26is actually '&' so it doesn't work. Is this a bug? Or is it by design?If by design I would request a feature to be able to take url's such as the one above and have prepopulate be able to parse them correctly.