Pixi, thanks for the help. I will try this out when I get a chance. Not sure where you enter the GetValue() funtion, but I will work on it.
pixi has given you a suggestion which is workable... but made a few assumptions about your experience level and skipped over some things.
A valuelist is created in File>manage>value list or by selecting the field itself and changing settings on the Data tab of the Inspector. Ultimately the Inspector is a better place to start as usually it is a specific field you want the valuelist assigned to.
A valuelist can be :
- a custom list like open/closed to red/yellow/blue/purple where each value is manually entered with a return between each item
- a list which get's it's values from a field and the data entered in it.
Yes/No and be a custom valuelist and assigned to the field. It can also be Boolean as pixi further suggests... which means that it is a number field and zero values mean "No" and non-zeros mean "yes". It can have the Yes/No valuelist assigned to it or Y/N and if Yes or Y are selected it will actually enter 1... and zero for No or N. This can be useful as you can easily summarise (total) the field across a set of records without further calculation. The total number of zero's is therefore the total number of records found minus the total Yes's.
Lyndsay, thanks for the help.
Maybe this answer is to simple:
If you set up a field to be shown as a radio button based on a valuelist with [yes;no] the radiobutton "yes" will be marked when the value is "yes". Not when it is "1".
Therefore let your script set the field to "yes" or let the fields calculation return "yes" if this is what you have set the valuelist to expect.