Jump to content

Set input field to locked, but not collapsed.


renobird
 Share

Recommended Posts

I'm building a module where I need to set a field to locked, but not collapsed.

I can set it to collapsed/locked like so:

$field->collapsed = Inputfield::collapsedLocked;

But looking for a way to do the same thing, but have the field default to open.

There currently isn't an option for "openLocked".

Any ideas on how to get around this? 

I'm feeling a little dense here at the end of the week.

:)

  • Like 1
Link to comment
Share on other sites

According to Inputfield.php, collapsedLocked should be exactly what you're looking for: visible, but not editable. Is the description there outdated or am I missing something here? :)

Edit: right, "otherwise same as collapsedYes".. that's a bummer. Sorry, can't see an obvious way to do this without some custom hooks right now.

Edited by teppo
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...