We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Add form elements inside the tabs


How to place forms elements inside the tabs.  each tab should have separate forms.


2 Replies

HB Hareesh Balasubramanian Syncfusion Team June 25, 2019 06:07 AM UTC

Dear Customer, 

Greetings from Syncfusion support. 

We have prepared the sample to render HTML form elements in one tab item and Syncfusion Query builder component  in another item for your reference. 

<EjsTab ID="defaultTab"> 
        <TabItem Header="@header1" Content="#content1"></TabItem> 
        <TabItem Header="@header2" Content="#content2"></TabItem> 
<div id="content2" style="display: none"> 
    <EjsQueryBuilder ID="querybuilder" Width="70%" Rule="@rule"> 
            <QueryBuilderColumn Field="EmployeeID" Label="Employee ID" Type="number"></QueryBuilderColumn> 
            <QueryBuilderColumn Field="FirstName" Label="First Name" Type="string"></QueryBuilderColumn> 
            <QueryBuilderColumn Field="TitleOfCourtesy" Label="Title Of Courtesy" Type="boolean" Values=@values></QueryBuilderColumn> 
            <QueryBuilderColumn field="Title" label="Title" type="string"></QueryBuilderColumn> 
            <QueryBuilderColumn field="HireDate" label="Hire Date" type="date" format="dd/MM/yyyy"></QueryBuilderColumn> 
            <QueryBuilderColumn field="Country" label="Country" type="string"></QueryBuilderColumn> 
            <QueryBuilderColumn field="City" label="City" type="string"></QueryBuilderColumn> 
<div id="content1" style="display: none"> 
        <div class="container"> 
            <p>Please fill in this form to create an account.</p> 
            <label for="email"><b>Email</b></label> 
            <input type="text" placeholder="Enter Email" name="email" required> 
            <label for="psw"><b>Password</b></label> 
            <input type="password" placeholder="Enter Password" name="psw" required> 
            <label for="psw-repeat"><b>Repeat Password</b></label> 
            <input type="password" placeholder="Repeat Password" name="psw-repeat" required> 
            <button type="submit" class="registerbtn">Register</button> 

Please check and revert for further assistance. 

Hareesh B 

VM vm June 25, 2019 06:11 AM UTC

Great Thank you

Live Chat Icon For mobile
Up arrow icon