MessageBox onsave
-
quinta-feira, 6 de dezembro de 2007 08:55
Hi all,
I hope someone can help me with the following problem:
We have a picklist on our company form where the default value is not assigned. An entry for this picklist is recommended but not neccessary. How can I manage it that a messagebox will pop up by saving a company in case the picklist is empty? It should show me the information that the picklist is still empty and I should have the opportunity to choose between proceeding and saving or canceling. I guess I have to change the onsave event on the form properties but I don't know how the code has to look like.
Greetings from Germany
Fabian
Todas as Respostas
-
quinta-feira, 6 de dezembro de 2007 10:26Proprietário
Hi Fabian2,
try it:
Code Blockif(crmForm.all.yourpicklist.DataValue == null)
{
if(confirm("Save without picklist?"))
{
return true;
}
else
{
event.returnValue = false;
return false;
}
}Cheers,
Jim
- Marcado como Resposta DavidJennawayMVP, Moderator domingo, 22 de março de 2009 16:59
-
sexta-feira, 7 de dezembro de 2007 06:40
Hi Jim,
it works great. Thanks for your help!
Greets,
Fabian