How to hide the first index in multifield | Community
Skip to main content
Level 3
May 23, 2023
Solved

How to hide the first index in multifield

  • May 23, 2023
  • 1 reply
  • 1247 views

Hi All,

 

I have one multifield and I want to hide the first index of multifield , for example I want to hide TabName#1 - HomePageSection  as shown below (highlighted in yellow)

 

 

How can I do this ?

 

Thanks for your help.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

You can do that as well with javascript

 

$('coral-multifield.yourclass coral-multifield-item:first-of-type > button').hide();

 

 

1 reply

arunpatidar
Community Advisor
Community Advisor
May 23, 2023

you can CSS to hide the first of type

coral-multifield.yourclass coral-multifield-item:first-of-type { display:none; }
Arun Patidar
subnaikAuthor
Level 3
May 23, 2023

Hi @arunpatidar and all,

 

Thanks for your reply. But here my requirement is that I want to hide the delete and replace icon for first multifield only in my JavaScript , as highlighted in red in below screenshot.

 

Thanks & Regards

 

 

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
May 23, 2023

You can do that as well with javascript

 

$('coral-multifield.yourclass coral-multifield-item:first-of-type > button').hide();

 

 

Arun Patidar