PEG_LIST icon indicating copy to clipboard operation
PEG_LIST copied to clipboard

[feat] SfpegCardCmp- Hidden field + condition to mode edit

Open ismailsalam opened this issue 1 year ago • 1 comments

We would like to request two enhancements for the sfpegCardCmp component:

1- If a picklist field that we need to display in the cards depends on other fields that are not displayed, then in edit mode the field remains grayed out, because the dependent field must be in the form.

Solution : For this, I propose to add the field in the config and tag it as hidden=true like {“size”:6,“fields”:[{“name”:“Suivi__c”},{“name”:“Marque__c”, "hidden"=true}]}. Then add in the component’s HTML “<lightning-layout-item key={iterField.name} hidden={iterField.hidden}”. diseabledField

2 - We would like the display in edit or read-only mode to be calculated based on a condition (e.g., user profile).

Thank you in advance.

Best regards,

ismailsalam avatar Oct 09 '24 13:10 ismailsalam

@ismailsalam My apologies for my late feedback.

  • For your first ask, you may already use the context property which directly adresses your requirement.
  • For your second ask, I shall have a look at it once I am finished with my current PEG_LIST restructuring as unlocked packages.

pegros avatar Jun 18 '25 18:06 pegros