Last modified: 2012-03-03 04:54:50 UTC
Hi. I have the following: {{#formlink:form=Edit Request Form|link text=Request Changes|link type=button|query string=Edit Request Template[Submitted By]={{#username:alt}}&Edit Request Template[Email]={{#useremail:alt}}&Edit Request Template[Telephone]={{{Telephone|}}}&Edit_Request_Template[Organisation]={{PAGENAME}}}} When the button is clicked the form is show. The Submitted By field correctly contains the logged in username. However, the email field just shows "{{" The query string is not parsing the {{#useremail:alt}} properly.
&Edit Request Template[Telephone]={{{Telephone|}}} ?
Makes no difference I'm afraid. (In reply to comment #1) > &Edit Request Template[Telephone]={{{Telephone|}}} > > ? Sorry Dan, what do you mean?
Sorry I don't recognize the syntax {{{Telephone|}}} ... Do'h ... Must be a template variable. Sorry, I didn't pick up that this code was inside a template, and I was confused by the 'form tag' syntax (e.g. {{{intro|...}}}). I guess you've checked that the parameter is being correctly passed to the template? Have you tried removing spaces from the query string?
Hi Dan. Yes, it's a template variable. They work fine :) SF just doesn't seem to support things like {{#useremail:alt}}. Cheers Neill.
I'm able to use any parser functions and magic words in #formlink. It appears you may have been having a problem with a bug in the particular extension that provides the parser functions you were having difficulty with. It's also possible that there was a mismatched set of curly braces in your code somewhere. I'm marking this "WORKSFORME". If you're still having trouble with this, let me know and I can try confirming it.
I think the major work that occurred for the 2.3.X and 2.4 version of SF has now taken care of this :)
Oh yes, I think you're right. There was an issue with magic words that I think Stephan fixed at some point. It might have been related to the troubles you were having. Either way, I'm glad it's working for you now.