Streaming live at 10am (PST)

Webflow script is not updateing after publish

we have update our script inside webflow page if we run in out local machine than it is updateing but after publish on webflow it is not updating i removed all code from script and just put one alert(“hello world”) on onclick function but script was tacking old code dont know what is wrong can you guys please help us because this is very urgent this is the code if you guys needed any othe stuff then let me know i will provide it

  /* .field {
    border-radius: 20px;
    border-width: 2px;
    border-style: solid;
    border-color: #FFD75D;
    height: 37px;
    padding-left: 40px;
    width: 360px;
  } */
  .field:focus {
    outline: none;
  .icon {
    /*position: absolute;
         left: 3.5%;*/
    color: #f5c441;
    top: 20%;

    font-size: 20px;
  .field-div {
    position: relative;
  #btn {
    height: 35px;
    width: 100px;
    position: absolute;
    top: 1px;
    right: 1px;
    border: none;
    border-radius: 20px;
    color: white;
      width: 390px;
      display: flex;
      position: relative;
      flex-direction: row;
      align-items: flex-end;
  .btn:hover {
    cursor: pointer;

  ::placeholder {
    color: grey;
    text-indent: 20px;

  @media screen and (max-width: 480px) {
    .field {
      width: 210px;
      padding: 10px;
  function init() {
    var input = document.getElementById("locationTextField");
    var autocomplete = new google.maps.places.Autocomplete(input);
  document.getElementById("btn").onclick = function (e) {
    var input = document.getElementById("locationTextField").value.substring(8).replace(" ", "-").replace(",", "");
    if (input === "") {
      window.alert("Please select an address");
    } else {
      window.alert("Webflow is working");
      window.location.href =
        "" + input;
  google.maps.event.addDomListener(window, "load", init);

@rushil_patel are you able to share the preview & published project on

B2B this is our live publish site
and this is a read-only linke of our project
Webflow - SolarHub
please let me know if you find out any solution

Your Q is too general. What the code should do? (JS redirect?) What’s wrong? Where is the button (page name + element)? Where is the element with ID btn? (That’s trigger the click event). Why you added a styles? (If the issue related to scripts).

No way to guess all of this.

Anyway you have red-console errors (Related to google map API)
You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.

code is redirecting to the our main react application and we are passing address throughout the url just put any address and click enter now i have to pass few parameter in url when user click any one address so i get to now that is b2b customer or b2c customer but i have updated script but don’t know it is tacking old script if i put only alert on script then also that is showing old script for selecting address part for user and the style is for address search bar we are made same search bar as our react application
so that google map api can create a problem you mean to say ??

Sorry. Hard to help you - your issue not clear (even not in 1%).

Click enter where? No one in the forum know your project.

**if you update the code and see old one - try to clear cache