Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How to enable the checkbox when the submit button is clicked in admin window


Level 2


I have a requirement where i have to intoruduce a email textbox followed by submit button.

Once the user enter the email id and clicked on submit there is checked box set to enable.

How to do this using js & jsp. as i am new to js & jsp.

below is the design. and code which i have tried


    <div class = "owner-search">

    <input type="text" id="emailText" value="ID: EMail..">

<button onclick="emailFunction()">Search</button>


function emailFunction() {

    var x = document.getElementById("emailText").value;

    alert("X value...." + x);

document.getElementById("emailText").value = x;

    var dummyData = "dummyData";

    alert("Dummy_new_data......" + dummyData);

    //document.getElementById('emailText').value = x;




String name=request.getParameter("dummyData");


out.println("emailText12sssssssss345" + name);



out.println("ESLE ..... " + name);



<% String st="<script> document.writeln(dummyData)</script>";





    out.println("value else=......."+st);





<div class="text-box-new">

<input is="coral-textfield" id="email-check" placeholder="Enter your name" value="">

    <label for="email-check" id="nsfwbtn" class="btn btn-danger" > asas


2 Replies


Community Advisor


Please check Coral checkbox and javascript API

Documentation | CoralUI


Level 10

If you want this UI to appear within AEM admin UI - then Arun is correct - you must use Coral APIs.