Have questions on Drop Downs

Hi All,

I have one Dynamic Drop down.

Now I wan to use this collect an information for purchasing.

In my code I am capturing Ids (as value and savinto).

But while writing to DB along with other vehicle details In I want the entry of choice label text for saving the form in DB.

Could you please suggest how can I do?

My Codes are here: and It is working:::

a!localVariables(
local!vehicleTypeData:rule!FF_Exp_VehiclesTypes(VehicleId:null),
/*local!vehicleSubTypeData:rule!FF_Exp_VehiclesSubTypes(typeId:null),*/
local!type,
local!subType,
local!saveSubType,
{
a!dropdownField(
label: "Dropdown",
labelPosition: "ABOVE",
placeholder: "--- Select a Value ---",
choiceLabels: index(local!vehicleTypeData,"category",null),
choiceValues: index(local!vehicleTypeData,"id",null),
value:local!type,
saveInto: {local!type,a!save(local!subType,
rule!FF_Exp_VehiclesSubTypes(typeId: save!value).data)},
searchDisplay: "AUTO",
validations: {}
),
a!dropdownField(
label: "Dropdown",
labelPosition: "ABOVE",
placeholder: "--- Select a Value ---",
choiceLabels: index(local!subType,"subcategory",{}),
choiceValues: index(local!subType,"subid",{}),
saveInto: local!saveSubType,
value: local!saveSubType,
searchDisplay: "AUTO",
validations: {},
disabled: isnull(local!type)
)
})

  Discussion posts and replies are publicly visible