Expand my Community achievements bar.

SOLVED

How to hide the first index in multifield

Avatar

Level 4

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)

 

subnaik_0-1684830803611.png

 

How can I do this ?

 

Thanks for your help.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

You can do that as well with javascript

 

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

arunpatidar_0-1684844695669.png

 

 



Arun Patidar

View solution in original post

4 Replies

Avatar

Community Advisor

you can CSS to hide the first of type

coral-multifield.yourclass coral-multifield-item:first-of-type { display:none; }


Arun Patidar

Avatar

Level 4

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.

 

subnaik_0-1684843877751.png

Thanks & Regards

 

 

Avatar

Correct answer by
Community Advisor

You can do that as well with javascript

 

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

arunpatidar_0-1684844695669.png

 

 



Arun Patidar