Hi
I am creating custom export functionality for my client who wants to export data in XML format.
My code looks something like this
for ....{
$particpant->addAttribute('State', $row->state);
....
}
This all works and I can obtain the data from state. The problem is I would like to assign a value to certain List box fields. The mark up out put is as follows using devtools
<select ...
<option value="Western Australia'">Western Australia</option>
<option value="New South Wales'">New South Wales</option>
....
</<select>
What I would like is this
<select ...
<option value="WA'">Western Australia</option>
<option value="NSW'">New South Wales</option>
....
</<select>
and obtain the value.
Is this possible?
My field is set up with the following (see attached)
Field Type: List
Values:
Western Australia
New South Wales
.......
Is this possible?
Thanks in advance.
Leah