Jump to content

hide field


Recommended Posts

I'm trying to hide an inputfield but label still appears:

$field = $modules->get("InputfieldText");
$field->attr('style','display: none');
$field->required = 1;


Link to comment
Share on other sites

$your_field->label = ''; //first need to set field label as empty string (important!)
$your_field->skipLabel = true; //works only if the label is set to empty string


  • Like 2
  • Thanks 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

  • Recently Browsing   0 members

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