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
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Validate 1
Level 2
shaik671144
Level 2

Likes

4 likes

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
shaik671144
Level 2

Likes

4 likes

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
View profile
shaik671144
Level 2

20-12-2018

HI,

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>

    <script>

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;

}

</script>

<%

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

if(name!=null){

out.println("emailText12sssssssss345" + name);

}

else{

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

}

%>

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

if(st!=null){

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

    }

else{

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

    }

%>

</div>

     </div>

<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

              </div>

Replies

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,279 likes

Total Posts

3,155 posts

Correct Reply

889 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,279 likes

Total Posts

3,155 posts

Correct Reply

889 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

21-12-2018

Hi,

Please check Coral checkbox and javascript API

Documentation | CoralUI

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

21-12-2018

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