HI All,
Based on the below example i converted the country textfield to dropdown.
# Convert the country text field in SuiteCRM to a drop-down list
Now i want to show the values of dropdown country in detailview, hence its showing the key value not showing the actual value.
And also i have added new field in the same group that also need to display in detailView.
Can anyone help to fix this. Thanks in Advance.
@arvnd86
You can check array âcountries_domâ in app label list. It should has format:
âkey_valueâ=>âactual_valueâ
HI,
In below code how to apply the option values
can any one suggestion please.
@arvnd86
The form editview use the array:
$app_list_strings['countries_dom']
from file âinclude/language/en_us.lang.phpâ for drop down list. I checked the array. There are pair key and value in array which equal countries name. When you saved data the key wrote to DB. If you didnât redefine the array you should see the countries name in the form detailview.
If I donât understand you correctly, please show screenshots of forms editview and detailview.
HI p.konetskiy,
Thanks for your update.
I have done the same and it has been working.
My issue, i want to show the key value store in DB which is store in DB as 1 and 2.
array(â1â=>âA valueâ, â2â => âB valueâ) what need to show is Option label as A value for option value 1 and B value for Option Value 2.
1 Like