# Why does if-do-else not work? - Webviewer URL question

**URL:** <https://community.thunkable.com/t/why-does-if-do-else-not-work-webviewer-url-question/1083501>\
**Category:** Questions about Thunkable X\
**Created:** [February 5, 2021, 9:31am UTC](https://community.thunkable.com/t/why-does-if-do-else-not-work-webviewer-url-question/1083501 "2021-02-05T09:31:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![leew18](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leew18/32/95204_2.png) [@leew18](https://community.thunkable.com/u/leew18)\
**Post date:** [February 5, 2021, 9:31am UTC](https://community.thunkable.com/t/why-does-if-do-else-not-work-webviewer-url-question/1083501/1 "2021-02-05T09:31:42Z")

</div>

Hello!

I have a question about these blocks of code and why they don’t work.

 ![Screenshot 2021-02-05](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/4/e41622b9e1206f8640baf5d7da6dc09566966d57.jpeg).

* * *

## If | Web\_Viewer2’s URL = “------this is the url------” Do | Navigate to “the next page” Else | Set “text” 's Text to “Please fill in the form first”

I am trying to make a web embed form so the user must finish the form, then click the button, and if they don’t finish it the button will say “Please fill in the form first”.

The form I used is Zoho Forms, which also lets people upload files to the form, so I can see the photos people upload.

So the Zoho forms URL changes after you submit, so the Web\_viewer2’s URL should also change, right?

Also, uploading doesn’t work when inside the app, so it kinda defeats the purpose of the form and the screen.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [February 5, 2021, 10:26am UTC](https://community.thunkable.com/t/why-does-if-do-else-not-work-webviewer-url-question/1083501/2 "2021-02-05T10:26:17Z")

</div>

I’d guess that the URLs don’t match @leew18

Why not check if the URL contains /form/ or something specific to the page you want them to be on?

---

<div class="post-metadata">

**Author:** ![leew18](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leew18/32/95204_2.png) [@leew18](https://community.thunkable.com/u/leew18)\
**Post date:** [February 5, 2021, 10:33am UTC](https://community.thunkable.com/t/why-does-if-do-else-not-work-webviewer-url-question/1083501/3 "2021-02-05T10:33:05Z")

</div>

Hi,  
There are two links, the first one is the link to the form, and the second one in the submitted link. I am trying to make it so if the Webviewer is displaying the “submitted page” then they can press the button. Else, the text above the button will say: “Please fill in the form first”.  
thanks

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [February 5, 2021, 10:40am UTC](https://community.thunkable.com/t/why-does-if-do-else-not-work-webviewer-url-question/1083501/4 "2021-02-05T10:40:06Z")

</div>

> [@leew18](#):
>
> I am trying to make it so if the Webviewer is displaying the “submitted page”

Surely this is a dynamic URL though, no? That’s why I suggested doing a partial match instead

---

<div class="post-metadata">

**Author:** ![leew18](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leew18/32/95204_2.png) [@leew18](https://community.thunkable.com/u/leew18)\
**Post date:** [February 5, 2021, 10:50am UTC](https://community.thunkable.com/t/why-does-if-do-else-not-work-webviewer-url-question/1083501/5 "2021-02-05T10:50:48Z")

</div>

Everytime I try to do the the form the URL is always the same.  
Link one is form. It changes to Link Two that is the thankyou Submitted page.

Original link: _[Zoho Forms](https://forms.zohopublic.com/give9/form/testthunkable/formperma/XRx5Ypv3mFzKV6SihScdR9ucDP2gQbG1XPK80TK6Bhc)_

Submitted link:  
_[Zoho Forms](https://forms.zohopublic.com/give9/form/testthunkable/thankyou/formperma/XRx5Ypv3mFzKV6SihScdR9ucDP2gQbG1XPK80TK6Bhc)_

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/a/baace865e56b64c85e696706c8428f51b2d5b4e4.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/7/77151c9728792b6c4e1da0723062254240d21314.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/8/489d70f01d32d6fb05a1149598bae402bd1629fa.png)

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [February 5, 2021, 11:29am UTC](https://community.thunkable.com/t/why-does-if-do-else-not-work-webviewer-url-question/1083501/6 "2021-02-05T11:29:42Z")

</div>

ah…sorry, my bad. I think this is an issue with the `Web_Viewer2's URL` block, which I think is a static value.

Let me check that and I’ll get back to you.

While I’m looking at that - wondering if you have a Web\_Viewer **1** in your app somewhere?

---

<div class="post-metadata">

**Author:** ![leew18](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leew18/32/95204_2.png) [@leew18](https://community.thunkable.com/u/leew18)\
**Post date:** [February 5, 2021, 11:58am UTC](https://community.thunkable.com/t/why-does-if-do-else-not-work-webviewer-url-question/1083501/7 "2021-02-05T11:58:20Z")

</div>

Yes, I have a Web\_Viewer1 on the next page but it is not related to Web\_Viewer 2.

---

<div class="post-metadata">

**Author:** ![leew18](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leew18/32/95204_2.png) [@leew18](https://community.thunkable.com/u/leew18)\
**Post date:** [February 8, 2021, 9:33am UTC](https://community.thunkable.com/t/why-does-if-do-else-not-work-webviewer-url-question/1083501/8 "2021-02-08T09:33:28Z")

</div>

I found out that the live test on the website doesn’t work but the Thunkable Live app works.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:29pm UTC](https://community.thunkable.com/t/why-does-if-do-else-not-work-webviewer-url-question/1083501/9 "2024-11-08T13:29:34Z")

</div>


