Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Picklist not respecting field dependencies #130

Open
desstuffout opened this issue Nov 1, 2022 · 1 comment
Open

Picklist not respecting field dependencies #130

desstuffout opened this issue Nov 1, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@desstuffout
Copy link

Describe the bug
We have a list that includes two picklists. The first picklist is the maximum amount allowed. The second picklist is the selected amount. There are dependencies set to limit the second picklist to only display the amounts up to the selected maximum amount. SimpliListView seems to be use a fixed dependency. For example our pick range is between 0 - 300 in 25 increments. Our selected amount picklist is giving the options: 0 and 25. It does not matter what option we choose in the maximum amount.

The second issue is that our lists are resizing to the amount of records, however this does not allow for the drop-down of the picklist to display properly. For example, if our list is very small with two records, but the picklist has 10 options, then the screen is cutoff at two options. It would be great if you could specify a minimum height for the component.

Simpli List View Version
2.144

To Reproduce
Steps to reproduce the behavior:

  1. Create an object
  2. Add two picklist fields using the same global picklist values
  3. Create a Field Dependencies specifying the Controlling picklist and the Dependent picklist
  4. Edit the lightning page for your object and add the simpliListView component
  5. Save and Activate
  6. Add a few records and try to use the two picklists

Expected behavior
Assuming our two picklists use the following values: 1, 2, 3

  • We created a dependency that picklist A is the controlling picklist and picklist B is the dependent picklist
  • When value 1 is selected in picklist A, the only available option in picklist B is 1
  • When value 2 is selected in picklist A, the only two available options in picklist B are 1, 2
  • When value 3 is selected in picklist A, the only available options in picklist B are 1, 2, 3

Desktop (please complete the following information):

  • Browser chrome

Additional context
Additionally, the ability to set a minimum component row height would be great. That way there would be room to display the picklist drop-down options.

Thank you, and keep up the great work!

@tomansley
Copy link
Owner

Thank you for providing such great issue details.

For the first issue this is definitely been on my list of things to do. I will look at what it means to get this done sooner.

For the second issue that is clearly a problem and needs to be resolved. I will try to get this resolved as soon as I can.

Regarding adjusting row height this sounds like the "Comfy" vs. "Compact" standard option provided by Salesforce. Was that the thinking here? Perhaps there can be an admin and list view option for changing the height of the rows based on the desired pixel height? I will keep this in mind. A great idea.

@tomansley tomansley self-assigned this Nov 2, 2022
@tomansley tomansley added the bug Something isn't working label Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants