Appending a query string to URL field

By: Raul Diego | Asked: 08/13/2024
ForumsCategory: Code HelpAppending a query string to URL field
Raul Diego asked 4 months ago
Hi, I need to append a short query string to the url from a submitted form, so that the hyperlink created in the view passes the full url with the string. I imagine it's very simple, but I can't figure it out. Thanks for any help.    
Question Tags:
3 Answers
Rob LeVineRob LeVine answered 4 months ago
I'm pretty sure I don't follow what you're asking so I'll just take a guess that you're looking for this.
Raul Diego answered 4 months ago
Hi Rob, thanks for your reply. Let me try to clarify... I have a form that contains a URL field. The inputed value, in this case from imported CSV tables, is then added to a View as a button or a link. However, I need to append "?dl=1" to the end of the original URL value, so that the href on the rendered button code contains the URL with the query string.  In terms of my ultimate puropoe, I am trying to force downloads instead of rendering the link in a browser. The above query string does that. But if you have another way to do that, let me know. Thx
Walter JonesWalter Jones answered 4 months ago
Add a new field and add your text as the default value.  You can then add the https://google.com/[134] and that next text will be were [134] is. 

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right