In the control panel, is it possible to only show a field when editing a single particular entry using JS/jQuery?
It's a matrix field, in case this makes any difference.
Thanks
ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It only takes a minute to sign up.
Sign up to join this communityYes. You could write jQuery script that you put in the Instructions field for that entry. You could check the URL in JavaScript/jQuery for the particular Entry ID you want to isolate, and then hide the corresponding field & label.
Updated: A Matrix field will still have an Instructions field in its Channel Fields definition, and that Instructions field can store HTML or script tags that will be processed when the page is rendered. You'll just need to View Source to see what the HTML is that contains the field, and hide it based on that HTML reference using jQuery.
entry_id
that you can use to build your jQuery. For example $('#publishForm').has('input[name="entry_id"][value="161"]')...etc., etc.