I created form using ui-component. after filling the data i display the data into backend. I want to display those field who has data in View action.

EX. i want to remove company label if it's blank/null. Please Help.

enter image description here

  • Are you able to do this on the frontend? Something along the lines of if="company.value.length"
    – Ben Crook
    Jan 11 at 11:55
  • i can, but how will it affect in backend?
    – Fena shah
    Jan 11 at 11:56
  • Changing the frontend HTML will have no impact on the backend. If you'd like to achieve this in the backend then I'm not sure.
    – Ben Crook
    Jan 11 at 12:19
  • @Fenashah A data provider is used the set the value to the field. if you want to hide or show a field then you have to extend the component using JS. Jan 12 at 6:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.