on 06-13-2013 6:07 AM
Hi all,
How can I enable and disable a field in the logon page?
I have added a new field called passcode in the logon page of SAP NetWeaver Portal. Initially the passcode field will be disabled for input, when the user enters values in the username and password, I need to enable this passcode field for taking input. Is it possible to achieve this?
Ofcourse it is possible!
I assume your passcode field has an id, let's say "myPasscode". To make the myPasscode hidden you can use:
#myPasscode {
display: hidden;
}
If you entered the two fields (name and password) you can check if the fields are filled in. If so, you can change the visibility with javascript:
document.getElementById('myPasscode').style.display = 'block';
Another option is to change the classname from myClassinvisible to myClassvisible.
<input name="passcode" id="myPasscode" class="myClassinvisible"/>
.myClassvisible {
display: block;
}
.myClassinvisible {
display: hidden;
}
If you are using jQuery it is even easier!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.