Previous | Next | (P-PDF) Beginners
Topic: ResetForm()
Conf: (P-PDF) Beginners, Msg: 23397
From: lehouxmichel
Date: 7/4/2001 10:31 AM
Hi, I tried your solution but it dosen't work. This is my code and since I work with the version 5.0, the syntax (event.value = " ") doesn't work. I don't know how to reset my field (It's a list box). I changed my field for a text box and it worked but whit the list box it doesn't.
Michel
a = this.getField("nbre_ess")
b = this.getField("Type(s) véh. 1");
if ((a.value == "2")&&(b.value == "TR"))
{
app."Avec une configuration de 2 essieux, choissiez CA, VO ou GR.","1")
event.value = " "
}
if ((a.value=="4")&&(event.value=="GR"))
{
app."Configuration impossible, choisissez TR ou CA.","1")
event.value = " "
}
if ((a.value=="4")&&(event.value=="VO"))
{
app."Configuration impossible, choisissez TR ou CA.","1")
event.value = " "
}
if ((a.value=="5")&&(event.value=="GR"))
{
app."Configuration impossible, choisissez TR ou CA.","1")
event.value = " "
}
if ((a.value=="5")&&(event.value=="VO"))
{
app."Configuration impossible, choisissez TR ou CA.","1")
event.value = " "
}
if ((a.value=="6")&&(event.value=="GR"))
{
app."Configuration impossible, choisissez TR ou CA.","1")
event.value = " "
}
if ((a.value=="6")&&(event.value=="VO"))
{
app."Configuration impossible, choisissez TR ou CA.","1")
event.value = " "
}
if ((a.value=="7")&&(event.value=="GR"))
{
app."Configuration impossible, choisissez TR ou CA.","1")
event.value = " "
}
if ((a.value=="7")&&(event.value=="VO"))
{
app."Configuration impossible, choisissez TR ou CA.","1")
event.value = " "
}
if ((a.value=="8")&&(event.value=="GR"))
{
app."Configuration impossible, choisissez TR ou CA.","1")
event.value = " "
}
if ((a.value=="8")&&(event.value=="VO"))
{
app."Configuration impossible, choisissez TR ou CA.","1")
event.value = " "
}
if ((a.value=="9")&&(event.value=="GR"))
{
app."Configuration impossible, choisissez TR ou CA.","1")
event.value = " "
}
if ((a.value=="9")&&(event.value=="VO"))
{
app."Configuration impossible, choisissez TR ou CA.","1")
event.value = " "
}