cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lira-toh
Frequent Visitor

webform appears a few second the dissappears

I have a few tabs created using html and javascript. each tab should opens specific webforms. problem now is when i open a tab the webform appears, but disappears in few seconds. while this happens i notice the web page as whole reloads. please assist.

 

this are the tabs created using html and javascript.

liratoh_0-1629116569910.png

when i click on create practice, the webform appear but disappears and the tab becomes empty.

liratoh_2-1629116726325.png

please assist. thank you

 

 

3 REPLIES 3
lira-toh
Frequent Visitor

could the problem be in my javascript, here is my code:

liratoh_0-1629190237614.png

or is it a configuration i am missing in loading my webform. my code for loading my webform:

<div class="tab">

     <button onclick="openCity(event, 'Create Practice)" class="tablinks" >'Create Practice'</button>

</div>
<!-- Tab content -->
<div id="CreatePractice" class="tabcontent" >
<h3 >Step1: Create Practice</h3>
    {% webform name: 'Create Practice' %}
</div>

 

 

OliverRodrigues
Super User
Super User

I didn't see anything obvious in your JS that could be causing this, but just so I understand a bit more your scenario, you have multiple Web Forms in the same page, and depending on a user selection, you are showing/hiding the forms, is that it?

I am not sure that is a good practice, as you might end up with multiple <form> elements and if a user doesn't have JS enabled in their browser, it could cause multiple web forms showing on the page

 

I know you are probably trying to save an extra page load, but in my opinion each tab button should redirect to a new Web Page, containing each Web Form




If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Apps Portals Super User


Oliver Rodrigues


 

lira-toh
Frequent Visitor

i go t the problem solved, problem was my javascipt code. webforms worked fine

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

Users online (3,154)