Issues Management List Validation (Javascript)


A

Al Ponds

When a the status is flagged closed, I want a message to appear to the end
user "The status is closed but you did not update the Closed Data field."

Where do I add javascript validation against the Project Web Access Issues
List (specific list and not globally across all list)? I have the List ID
number and all the variables available but I used the element numbers
instead.

Javascript code will be something like this....

if(document.forms[0].elements[30].value)
{
if (document.forms[0].elements[26].value =="Complete" &&
document.forms[0].elements[30].value <>" ")
{
alert("Issue list item not updated. Please change enter the Close Date");
}
else if (document.forms[0].elements[26].value !="Complete" &&
document.forms[0].elements[30].value <>" ")
{
alert("Issue list item not updated. Please update Status.");
}
else
{
if (document.forms[0].elements[30].value=="")
{
alert("Issue list item not updated. You have a Closed Date value but the
Status must be Closed. Please update status.");
}
else
{
theForm.action = "http://mydevserver/_vti_bin/owssvr.dll?CS=109";
frm.ValidateAndSubmit(true);
}
}
}
else

Is there a better method for doing this? Please advise if futher
clarification is needed.

Sincerely,
Al Ponds
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top