Skip to content
Snippets Groups Projects
Commit a9ceab7b authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

reset salutation on gender change

parent 62f7b988
No related branches found
No related tags found
No related merge requests found
......@@ -32,10 +32,9 @@
<consumer>KeywordGenders</consumer>
<valueProcess>%aditoprj%/entity/Person_entity/entityfields/gender/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/Person_entity/entityfields/gender/displayValueProcess.js</displayValueProcess>
<onValueChange>%aditoprj%/entity/Person_entity/entityfields/gender/onValueChange.js</onValueChange>
<onValueChangeTypes>
<element>MASK</element>
<element>PROCESS</element>
<element>PROCESS_SETVALUE</element>
</onValueChangeTypes>
</entityField>
<entityField>
......
import("system.db");
import("system.vars");
import("system.neon");
if((vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW || vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT))
{
neon.setFieldValue("$field.SALUTATION", "");
neon.setFieldValue("$field.TITLE", "");
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment