Currently Selected Item on dropdown only goes to first in list

Currently Selected Item on dropdown only goes to first in list

jmd8045jmd8045 Posts: 4Questions: 1Answers: 0

This shows properly when in table display mode correctly but when you click Edit it switches values to the first item in line?

{
                label: "Account Type:",
                name: "entitytype",
                type: "select",
                def: "0",
                options: 
                [
                                    { label: "COMMITTEE CHAIRMAN",value: "5" }, 
                                    { label: "CHAIRMAN",value: "6" }, 
                                    { label: "VICE CHAIR.",value: "14" }, 
                                    { label: "DIRECTOR",value: "9" }, 
                                    { label: "PRES. / CEO",value: "1" }, 
                                    { label: "PRESIDENT",value: "11" }, 
                                    { label: "CHIEF FINANCIAL OFF.",value: "13" }, 
                                    { label: "CHIEF LENDING OFF.",value: "16" }, 
                                    { label: "CHIEF OPERATIONS OFF.",value: "17" }, 
                                    { label: "REGIONAL PRES.",value: "20" }, 
                                    { label: "EXEC. VICE PRES.",value: "3" }, 
                                    { label: "SR. VICE PRES.",value: "4" }, 
                                    { label: "VICE PRES.",value: "2" }, 
                                    { label: "CASHIER",value: "25" }, 
                                    { label: "ASST. VICE PRES.",value: "12" }, 
                                    { label: "ASST. CASHIER",value: "26" }, 
                                    { label: "OFFICER",value: "24" }, 
                                    { label: "RECORDING SECRETARY",value: "21" }, 
                                    { label: "AUDITOR",value: "27" }, 
                                    { label: "COMMITTEE MEMBER",value: "15" }, 
                                    { label: "EX-OFFICIO",value: "19" }, 
                                    { label: "BANK PRIMARY CONTACT",value: "7" }, 
                                    { label: "BANK SECONDARY CONTACT",value: "8" }, 
                                    { label: "BILLING CONTACT",value: "10" }, 
                                    { label: "AMG SALES CONTACT",value: "22" }, 
                                    { label: "AMG SUPPORT CONTACT",value: "23" }, 
                                    { label: "UNASSIGNED",value: "0" }, 
                                    { label: "DISTRIBUTION",value: "30" }, 
                                    { label: "BANCPATH ADMIN",value: "29" } 
                                ]
            }

Replies

  • allanallan Posts: 63,572Questions: 1Answers: 10,482 Site admin

    This error suggests that the value of entitytype isn't in the value properties. Commonly this is because the label is used instead, but it also be because the value simply isn't in that list.

    If you could give me a link to the page I could say for certain.

    Allan

This discussion has been closed.