Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'Select' Option causes field duplication

Status
Not open for further replies.

tonymm

Technical User
Aug 6, 2001
8
AU
Hi all

I am using the select statement to allow choosing from a list of values e.g.

<SELECT NAME=&quot;SET.status&quot;>
<OPTION VALUE=$args.status>$args.status.sym
<PDM_LIST PREFIX=list WHERE=&quot;active = 1&quot; FACTORY=&quot;crs&quot;>
<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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top