Solved

Javascript question Validation Help

Posted on 2004-03-24
4
208 Views
Last Modified: 2013-12-18
HI Guys

JavaScript question here

I need this to Validate TK on all forms except RFA. The rest of the JS works already from the first Return False I am adding TK
case "Pending Approval" :
                                               TK = "Time Keeper Project Code/TKProjCode"
                                               if ( document.all.RequestType.value !== "RFA" )
                                              elseif( !RTGValidateForm(TK ) )
                        return false
                  v = "Forecast Effort (mandays)/Effort, Proposal Valid Thru/DateValidThru, Scheduled Start/DateScheduledStart, Committed Delivery/DateCommittedDelivery, Engineering Group/EngineeringGroup"
                  if ( document.all.RequestType.value == "Certification" ) v += ",Engineer Contact Name/CertEngineer,Engineer Contact Phone/CertPhone,Engineer Contact E-Mail/CertEmail"
                  if ( !RTGValidateForm( v ) )
                        return false
                  break
0
Comment
Question by:adspmo
  • 2
4 Comments
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 10670965
I don't remember this JS function but I remember you asking somewhat similar q here

SO what is the problem here.. I see you have already incorporate TK value for checking ??

~Hemanth
0
 

Author Comment

by:adspmo
ID: 10671071
I am more or less just asking abiut my syntax, Is it correct or is there a different way of writing this. I think it is correct, just not sure about the ElseIF
0
 
LVL 14

Accepted Solution

by:
p_partha earned 350 total points
ID: 10671125
just give a space between else and if , i.e
else if (!RTGValidateForm(TK ) )


Partha
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 10671361
there is no elseif...

the if construct is like this

if {

}
else {


}
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now