# Deploy to netlify button - how to get the title of the input to be the env var name, and the placeholder to be the default value passed on the URL?

**URL:** <https://answers.netlify.com/t/deploy-to-netlify-button-how-to-get-the-title-of-the-input-to-be-the-env-var-name-and-the-placeholder-to-be-the-default-value-passed-on-the-url/120697>\
**Category:** Support\
**Tags:** deployment, environment-vars\
**Created:** [June 20, 2024, 11:16pm UTC](https://answers.netlify.com/t/deploy-to-netlify-button-how-to-get-the-title-of-the-input-to-be-the-env-var-name-and-the-placeholder-to-be-the-default-value-passed-on-the-url/120697 "2024-06-20T23:16:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![omri](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/omri/32/35388_2.png) [@omri](https://answers.netlify.com/u/omri)\
**Post date:** [June 20, 2024, 11:16pm UTC](https://answers.netlify.com/t/deploy-to-netlify-button-how-to-get-the-title-of-the-input-to-be-the-env-var-name-and-the-placeholder-to-be-the-default-value-passed-on-the-url/120697/1 "2024-06-20T23:16:50Z")

</div>

- site: `peoplefinder-acmecorp.netlify.app`, built from [GitHub - aserto-demo/peoplefinder-acmecorp](https://github.com/aserto-demo/peoplefinder-acmecorp)

3 years ago, I followed the instructions at [Create deploys | Netlify Docs](https://docs.netlify.com/site-deploys/create-deploys/#pre-fill-environment-variables) to create a nice “deploy to netlify” experience which used to render nicely.

The behavior USED to be that the Netlify deploy UI would read the titles of each environment variable from netlify.toml (for example, FOO = “Set the value of FOO” would render the deploy to netlify page with an input with the title FOO (the name of the env var), and the placeholder text “Set the value of FOO”. And when a default value was passed in the URL (e.g. [Netlify](https://app.netlify.com/start/deploy?repository=https://github.com/aserto-demo/peoplefinder-acmecorp#FOO=a-cool-foo)), the title would STILL render as “FOO”, and the placeholder value would now read “a cool foo”.

However, at some point in the not too distant past, the behavior has changed. If you pass in default values for these environment variables that are defined in netlify.toml, BOTH the title of the input AS WELL AS the placeholder text are set to the default value. So the title would be rendered as “A cool foo” and the placeholder text “a cool foo”, instead of the title being “FOO”.

This matters, because the user should see what the environment variables are actually called, and only the placeholder text should be overriden with the default value supplied in the URL.

This was how it used to be, but somehow the behavior has changed.

Any tips on getting the behavior I want? [omri@aserto.com](mailto:omri@aserto.com)

---

<div class="post-metadata">

**Author:** ![SamO](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/samo/32/41847_2.png) [@SamO](https://answers.netlify.com/u/SamO)\
**Post date:** [June 26, 2024, 7:16pm UTC](https://answers.netlify.com/t/deploy-to-netlify-button-how-to-get-the-title-of-the-input-to-be-the-env-var-name-and-the-placeholder-to-be-the-default-value-passed-on-the-url/120697/2 "2024-06-26T19:16:05Z")

</div>

hi 👋🏿 @omri thanks for reaching out!

The title and placeholder value of an input field cannot be directly modified through the URL. These properties are usually defined within the site’s HTML or Markdown code, not via URL parameters.

For instance, you can pass environment variables through the URL like this:

```auto
https://app.netlify.com/start/deploy?repository=https://github.com/myworkspace/sweetkittentemplate#SECRET_TOKEN=specialuniquevalue&CUSTOM_LOGO=https://placekitten.com/100/100

```

In this example, `SECRET_TOKEN` and `CUSTOM_LOGO` are the environment variables, with `specialuniquevalue` and `https://placekitten.com/100/100` as their respective values.

For more details, check our documnetation:

> **[Create deploys](https://docs.netlify.com/site-deploys/create-deploys/)**
>
> Discover different methods of deploying a site using our platform. Take advantage of continuous deployment, manual deployment, or integration options.

---

<div class="post-metadata">

**Author:** ![omri](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/omri/32/35388_2.png) [@omri](https://answers.netlify.com/u/omri)\
**Post date:** [June 27, 2024, 4:52am UTC](https://answers.netlify.com/t/deploy-to-netlify-button-how-to-get-the-title-of-the-input-to-be-the-env-var-name-and-the-placeholder-to-be-the-default-value-passed-on-the-url/120697/3 "2024-06-27T04:52:06Z")

</div>

Hi Sam, thanks for the response!

I have spent alot of time with your docs 🙂

Check out the documentation we wrote about using the “Deploy to Netlify” button over two years ago on our docs site: [Deploy PeopleFinder - Aserto Docs](https://docs.aserto.com/docs/getting-started/peoplefinder/deploy-peoplefinder#deploy-to-netlify)

As you can see from the screenshot, we have 10 inputs on the deploy form, each of them corresponding to an environment variable.

Each of the inputs has a label, which (in the screenshot) comes from the `netlify.toml` file: [peoplefinder-acmecorp/netlify.toml at master · aserto-demo/peoplefinder-acmecorp · GitHub](https://github.com/aserto-demo/peoplefinder-acmecorp/blob/master/netlify.toml)

For example, the environment variable `REACT_APP_POLICY_ROOT` is defined in the `netlify.toml` file in the following way:

```auto
[template.environment]
  REACT_APP_POLICY_ROOT = "Policy root"

```

And so the label on the very last input you see in the screenshot is rendered as “Policy root”.

The placeholder value that you see in the screenshot for that same input is “peoplefinder”. This was put in there using the URL - like this:

> **[Netlify App](https://app.netlify.com/start/deploy?repository=https:%2F%2Fgithub.com%2Faserto-demo%2Fpeoplefinder-acmecorp#REACT_APP_POLICY_ROOT=peoplefinder)**
>
> Start building the best web experiences in record time

Between these two mechanisms (the label text, that comes from the netlify.toml file, and the default value for the input, which comes from the URL), we were able to render the deploy-to-netlify screen as depicted in the screenshot.

However, this behavior has recently changed. The values in the netlify.toml file don’t seem to be honored anymore. If you click on the deploy URL I posted just above, you’ll see the following screen:

 ![deploy-to-netlify](https://global.discourse-cdn.com/netlify/original/3X/f/c/fc9216ba953b12657e185004bf23a8c937c9433d.png)

As you can see, all the input labels are still rendered with the text that comes from netlify.toml.

However, for the last input, the label is “peoplefinder” and the value of the input is also “peoplefinder”…

In other words, the behavior has changed. I’m hoping that we can figure out how to get the previous behavior… where the label still comes from the netlify.toml file (in this case, it should say “Policy root”), and the value comes from the deploy URL (in this case, “peoplefinder”).

I hope this makes sense!

Thanks,  
Omri.

---

<div class="post-metadata">

**Author:** ![omri](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/omri/32/35388_2.png) [@omri](https://answers.netlify.com/u/omri)\
**Post date:** [June 28, 2024, 10:58pm UTC](https://answers.netlify.com/t/deploy-to-netlify-button-how-to-get-the-title-of-the-input-to-be-the-env-var-name-and-the-placeholder-to-be-the-default-value-passed-on-the-url/120697/4 "2024-06-28T22:58:18Z")

</div>

Hi @SamO any thoughts on this? ^^

---

<div class="post-metadata">

**Author:** ![omri](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/omri/32/35388_2.png) [@omri](https://answers.netlify.com/u/omri)\
**Post date:** [July 26, 2024, 1:43am UTC](https://answers.netlify.com/t/deploy-to-netlify-button-how-to-get-the-title-of-the-input-to-be-the-env-var-name-and-the-placeholder-to-be-the-default-value-passed-on-the-url/120697/5 "2024-07-26T01:43:18Z")

</div>

Hey @SamO, trying one more time… I’m still stuck on this change of behavior. I’m happy to get on a call with someone and take them through the repro.

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [July 27, 2024, 1:16pm UTC](https://answers.netlify.com/t/deploy-to-netlify-button-how-to-get-the-title-of-the-input-to-be-the-env-var-name-and-the-placeholder-to-be-the-default-value-passed-on-the-url/120697/7 "2024-07-27T13:16:10Z")

</div>

Sorry for the delay. We’ve passed this on to the devs, however fair disclaimer that this might take a bit of time than an average issue. It’s one of the lowest priority issues currently as this is not a super-critical feature for the majority of the users. So I’m unsure when the devs would get to this.
