Forms - Remove select button for fields with "url|link" in name

edited September 2016 in Modules
Hi,

Every field with "url|link" automatically has a select button on the right side of the input field. I have a field named "carousel_link", how can I remove the select button automatically being generated?

The select button shows a modal wherein you can select pages. I want to remove this button, what should i do?

Of course if I rename the field (to carousel_landing_page) it will be removed. But I want to retain the name "carousel_link" for my database, so I'm looking for other options.

Comments

  • edited 6:10PM
    Add the parameter "ignore_representative" => TRUE to your field. Form_builder is setup to automatically use the URL field type with any field that has the name of url or link.
  • edited 6:10PM
    It works! Even with fields having "image" in their names. Thanks!
Sign In or Register to comment.