Brian Dunning's FileMaker Custom Functions

SetURLParameter ( urlString ; parameterName ; text )

Sets a specific parameter inside a urlString to some text

  Average rating: 4.5 (22 votes) Log in to vote

Gary Amstutz   Gary Amstutz - Show more from this author
Sweetwater
http://sweetwater.com

Share on Facebook Share on Twitter

  Sample input:
SetURLParameter ( "http://www.examples.com/search?category=shoe&brand=nike&color=red&size=5&pricefrom=10&priceto=1000" ; "brand" ; "newbalance" )

or

SetURLParameter ( "http://www.aircraft.com/search?make=&model=" ; "make" ; "airbus" )
  Sample output:
http://www.examples.com/search?category=shoe&brand=newbalance&color=red&size=5&pricefrom=10&priceto=1000

or

http://www.aircraft.com/search?make=airbus&model=

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Sometimes you need to set a parameter in a URL based on data in a field in a record in FileMaker. This function simplifies that task. You can call this function repeatedly with different parameter names and data to set multiple parameters within the same URL.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: