I created an asset builder and use "Comment Create Form Layout". I tried to present some metadata fields on the frontend as data input field. The keyword I used is %metadata-F_117082%. For some reason, it does not only shows the field itself, but also show a "cascade value" tick box and the set "Character Limit".
How can I only keep the metadata input field and get rid of the "Cascade value" tick box and the "Character Limit"? Is there a different keyword?
Many thanks!
[quote]I created an asset builder and use "Comment Create Form Layout". I tried to present some metadata fields on the frontend as data input field. The keyword I used is %metadata-F_117082%. For some reason, it does not only shows the field itself, but also show a "cascade value" tick box and the set "Character Limit".
How can I only keep the metadata input field and get rid of the "Cascade value" tick box and the "Character Limit"? Is there a different keyword?
Many thanks![/quote]
Simple edit layout -> Details screen -> "Simple Edit Configuration Options" section -> Untick Show "Cascade Metadata" field
Hi, thanks a lot for your help. However, I have trouble finding the "Simple Edit Configuration Options". I clicked "detials" on the simple edit layout asset "Comment Create Form Layout" and didn't get it. Also checked the "Layout Manager" and didn't get it. I hope you don't mind me asking which "Simple edit layout"?
I'm using Matrix 3.18.11
Possibly a 3.20 up thing…
A little bit of css hackery can help if the option to hide aren't available.
/* hide the cascade options - You will need to create one for each field*/
input[name="metadata_field_*field type*_*field id*_cascade_value"]{
display:none;
}
/* Will get rid of the labels if you want */
label {
display:none;
}
[quote]Hi, thanks a lot for your help. However, I have trouble finding the "Simple Edit Configuration Options". I clicked "detials" on the simple edit layout asset "Comment Create Form Layout" and didn't get it. Also checked the "Layout Manager" and didn't get it. I hope you don't mind me asking which "Simple edit layout"?
I'm using Matrix 3.18.11[/quote]
It's available from 3.20, so you have to upgrade.
or downgrade to 3.16 as 'cascade value' option is a new feature given by 3.18.
Shane's solution also does hide the checkbox, but beware of the style for label as it hides all labels.
Robin
PS. Sorry Shane, I tried the CSS trick and found all labels were gone… 
That's ok, i was using the label to hide them all as there was no way to get them individually but all the options in the world to put my own labels in:)
Thank you so much for helping. Do you mean there's no way to hide them individually? That will be a problem. I do use label for other layout purpose.
The "character limit" also shows up after the cascade label.
Character Limit: 100 <span style="color:red" id="metadata_field_text_117086_value_note"></span>
How can I hide this?
I'm hitting the wall!! Any other suggestions?
The only way to hide something that is dynamically created by Matrix with css is to be able to target something like the id, name or class and create your own over-riding css. If there isn't anything unique then the next best thing is to take them all away and put back the ones you want.
Without double checking I think this will help you with the limit, basically you will be targeting the the id with a class to hide the element.
/* Keep the limit a secret(I could tell you, but then i would have to kill you) - You will need to create one for each field*/
#metadata_field_*field type*_*field id*_value_note {
display:none;
}
I use a bit of jquery script to hide all instances of ‘cascade_value’ on the page which seems to be working quite well… See the thread on turning off cascade value.