Question: This is part of a `html` code in ASP.NET (Visual Studio) and when I try to run the code, it gives me the following `error`:

> 
> Unhandled exception at line 216, column 63 in <http://localhost:55031/WebForm1.aspx>
>  0x800a1391 - JavaScript runtime error: 'addInput' is undefined 
> 
> 
> 

Some people have been saying that I need to add a `JQuery` script but I keep getting this error. What am I doing wrong? Any help would be appreciated!

This is the HTML code in ASP.NET (Visual Studio):

```
  <script src='http://code.jquery.com/jquery-latest.min.js' type='text/javascript'></script>
  <script src=" C:/Users/Desktop/check.js" language="Javascript" type="text/javascript"></script>

    <form method="POST">

    <div id="dynamicInput">

         Please click the Add Another Dimension button to add more dimensions/measurements<br>

    </div>
        <input type="button" value="Add Another Dimension" onClick="addInput('dynamicInput');">

    </form>

</div>
<div class="button-section">
 <input type="submit" value="Submit" name="Checksheet" required />
 <span class="privacy-policy">
 <input type="checkbox" name="field50" required>I agree. 
 </span>
</div>
</form>

```

Answer: 
> 
> 403 (Forbidden) while calling one azure function from another
> 
> 
> 

If don't add the **client Ip in the IP restrictions**, then you test it in you client will get 403 error. Not only call on azure function from another ,but also all functions are restricted if you don't add the client IP in the IP restrictions.

In your case, you need to add your test [client Ip](https://www.whatismyip.com/) in the IP restrictions, then it will work.

[![enter image description here](https://i.stack.imgur.com/HfsYm.png)](https://i.stack.imgur.com/HfsYm.png)

[![enter image description here](https://i.stack.imgur.com/Cv1AG.png)](https://i.stack.imgur.com/Cv1AG.png)

**Update:**

Add the test result.

[![enter image description here](https://i.stack.imgur.com/l5DVD.png)](https://i.stack.imgur.com/l5DVD.png)
1. Call Function #2 by its full URL, since there's a front end layer that gets hit first before the request makes it to your function app. This is true even for functions calling each other within the same function app.

```
GET https://{func-app-name}.azurewebsites.net/api/function2

```
2. If the `authLevel` is not anonymous in `function.json`, pass in the API key as `?code=` —

```
https://{func-app-name}.azurewebsites.net/api/function2?code={API-key}

```

or as a header —

```
GET https://{func-app-name}.azurewebsites.net/api/function2
x-functions-key: {API-key}

```

When running locally (Visual Studio/`func host start`), the value of `authLevel` is ignored. Looking at your decorator, `AuthorizationLevel.Anonymous` is present so most probably that's not it.

More on [authorization keys here](https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook#authorization-keys).

On top of that, you could do better that returning `null` in Function #2: `200 OK`, `202 Accepted`, `204 No Content`, all valid choices depending on what's supposed to happen next (async/sync processing).