Hi all
I am using the select statement to allow choosing from a list of values e.g.
<SELECT NAME="SET.status">
<OPTION VALUE=$args.status>$args.status.sym
<PDM_LIST PREFIX=list WHERE="active = 1" FACTORY="crs">
<OPTION VALUE='$list.code'>$list.sym
</PDM_LIST>
<PDM_IF '$cst.domain.sym' == 'Test Team'>
<OPTION VALUE='CL'>Closed
<OPTION VALUE='CLCAN'>Cancelled
</PDM_IF>
</SELECT>
When a value is selected it is assgined to that page and stored in a database. When that specific page is reopened for editing, say to change the value again, its previously saved value is duplicated twice in the drop down list...
The 'select' behaves normally when its new and no value has yet been chosen or saved.
how can i stop the value that has been previously chosen and saved from appearing twice in the selections when a saved page is reopened??????
any help badly appreciated!
thnx
tony
I am using the select statement to allow choosing from a list of values e.g.
<SELECT NAME="SET.status">
<OPTION VALUE=$args.status>$args.status.sym
<PDM_LIST PREFIX=list WHERE="active = 1" FACTORY="crs">
<OPTION VALUE='$list.code'>$list.sym
</PDM_LIST>
<PDM_IF '$cst.domain.sym' == 'Test Team'>
<OPTION VALUE='CL'>Closed
<OPTION VALUE='CLCAN'>Cancelled
</PDM_IF>
</SELECT>
When a value is selected it is assgined to that page and stored in a database. When that specific page is reopened for editing, say to change the value again, its previously saved value is duplicated twice in the drop down list...
The 'select' behaves normally when its new and no value has yet been chosen or saved.
how can i stop the value that has been previously chosen and saved from appearing twice in the selections when a saved page is reopened??????
any help badly appreciated!
thnx
tony