I'm using prepopulate somewhere token is activated.

what I need is:
http://bhuntr.com/node/add/forum/14?edit[field_related_match][0][nid]=123

which '123' is the node id. So I type in:
http://bhuntr.com/node/add/forum/14?edit[field_related_match][0][nid]=[nid]

but it comes out:
http://bhuntr.com/node/add/forum/14?edit[field_related_match][0]123=123

how do I use the square brackets in my form without being converted?
Or is there any other way to do this?

Comments

MOo__DUCL’s picture

You must replace

[field_related_match][0][nid]=[nid]

with

[field_related_match][0]%5bnid%5d=[nid]

where

%5b and %5d are the url-encoding of [ and ]

jbrauer’s picture

Status: Active » Fixed

cleaning up old issues. This was answered.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

joco_sp’s picture

Issue summary: View changes

This is not working for me, because % is replaced with %25

And I get something like [field_related_match][0]%255bnid%255d=[nid]

If I try to use %25 I get %2525

Any suggestions?

serguitus’s picture

Same here when using it on views->replace result as link using replacement patterns
'%' would need to be scaped
any clues?

Chrys’s picture

I have the same problem with serguitus. Any ideas?

Anonymous’s picture

Same problem here.