Skip to main content
Solved

Prefilling Form URL with hyphenated data

  • July 26, 2021
  • 2 replies
  • 31 views

Hi! I’m trying to create a prefilled form URL, but I believe the prefill isn’t working because I’m trying to prefill information with hyphens. Any ideas on how I can make this work?

Example:
Field Name: Type Name
Example data: Apples - Michigan

Form URL: “https://airtable.com/shrxxxxxxxx?"&“prefill_”&ENCODE_URL_COMPONENT(“Type Name”)&”="&ENCODE_URL_COMPONENT({Type Name})

How do I make sure “Apples - Michigan” doesn’t break the URL (and in turn, not prefill the form)?

Best answer by nisha_elliott

AH we found another error in our formula, apologies! We thought the hyphen just wasn’t translating well into the URL but turns out it was something else!!

2 replies

Forum|alt.badge.img+3
  • Participating Frequently
  • July 26, 2021

Hi @nisha_elliott your formula should work.

ENCODE_URL_COMPONENT does exactly that. What URL is generated currently?


  • Author
  • Inspiring
  • Answer
  • July 26, 2021

AH we found another error in our formula, apologies! We thought the hyphen just wasn’t translating well into the URL but turns out it was something else!!