This translation is older than the original page and might be outdated. See what has changed.




This node describes the fields whose changes you want to monitor and the actions that you want them to execute when the changes occur.
When a change in value occurs in a property, the actions described are searched in the following way:

<onchange>
 
	<field name="campo">
 
		<action atributos>
			...
		</action> 
 
	</field> 
 
	<field name="campo"> 
 
		<action ....>
			...
		</action> 
 
	</field> 
 
	......
 
</onchange> 


<onchange>
	<field name="MAP_HOMBRE">
		<action name="runscript">
			<script language="VBScript">
				if this("MAP_HOMBRE") = "1" then
					this("MAP_MUJER") = "0"
					this("SEXO") = "H"
				else
					if this("MAP_MUJER") = "0" then
						this("MAP_HOMBRE") = "1"
						this("SEXO") = 	"H"
					end if	
				end if
			</script>
		</action>
	</field>
	<field name="MAP_MUJER">
		<action name="runscript">
			<script language="VBScript">
				if this("MAP_MUJER") = "1" then
					this("MAP_HOMBRE") = "0"
					this("SEXO") = "M"
				else
					if this("MAP_HOMBRE") = "0" then
						this("MAP_MUJER") = "1"
					end if
				end if
			</script>
		</action>
	</field>
</onchange>