on 06-06-2008 12:18 PM
Hi i have two input filds with labels E mail and confirmmail
in both the input flds same value should be enter ,if data in second input field is different from first input field an error should be displayed,can u please expalin me with code
thanks
kishore
Hi ,
String emailId1 = wdContext.currentContextElement().getID1();
String emailId2 = wdContext.currentContextElement().getID2();
if(emailId1.equals(emailId2 )){
// same
}else{
// Different
}
Thanks,
Ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
use as follows
String emailId1 = wdContext.currentContextElement().getID1();
String emailId2 = wdContext.currentContextElement().getID2();
//remove the following condition if not needed ,
if( (emailId1 != null && !emailId1.trim().equals("")) && ( emailId2 != null && !emailId2.trim().equals("")))
{
int x = emailId1.compareTo(emailId2);
if( x == 0)
//Both are same
else
//Do the else part
}
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.