After my last topic I decided to make another try with SuiteCRM 8.0.4. It seems to me like dynamic dropdowns are not working (or at least are not defined like it was in 7.12). I followed this topic here to create my dropdowns: Dynamic Dropdown Creation - #6 by amariussi
I’d like to add additional fields to the Case module containing software we support for our customers as well as it’s versions. So here’s what I did:
I created a custom field “software_name_c” as a standard dropdown list.
I created software_name_list populated with couple of entries: cp - Software 1, cs - Software 2, wch - Software 3 (entry name - entry label).
I created another custom field “software_version_c” as a dynamic dropdown list.
I created software_version_list populated with: cp_1 - 1.0, cp_2 - 2.0, cp_3 - 3.0 and so on for every entry.
For parent dropdown in “software_version_definition_c” I entered “software_name_c” as it’s the name of the field containing the master dropdown.
I changed Edit View for the case, adding both dropdowns.
When I create a new case, I can choose software name without problems, but Version dropdown doesn’t show anything, it’s empty. If I try to enter the value manually, it gets deleted (quite understandable, as it is a dropdown with predefined values).
The same setup worked flawlessly in 7.12, so is it some bug or has anything changed between 7.x and 8.x regarding dynamic dropdowns?
Thanks for the info, at least I see I’m not alone with this issue (Though I haven’t been so lucky and none of my dynamic dropdowns I tried to create in 8.x were working ).
Hey this is a bug in the suitecrm 8.x where it using parent dropdown list labels instead of dropdown list values. This is why for @HiltonT ArtsMusic , SportRec and BlitheringFool do not work because there labels and values are different.
In the core you can modify core/app/core/src/lib/fields/base/base-enum.component.ts line number 286
from
Thank you for this find! I’ve tested it with editing .js files (sadly I’m not knowledgeable enough to recompile anything in SuiteCRM ) and it actually worked. One issue with 8.x down for me.