1

I'm looking simple markup field (similar to Field Hidden which would provide dummy field which can place hold some html code (such as field title and its description without showing any field).

So basically something equivalent to this Form API element:

$form['markup'] = array('#markup' => '<span>foo bar</span>');

but as a proper field (so no custom coding or styling involved) which can be attached to Entityform.

  • ...otherwise known as a text field ;) – Clive Sep 17 '15 at 16:15
  • 1
    Oh wait, I misread. Would Static field do the job? – Clive Sep 17 '15 at 16:17
  • @Clive Yes, Static field should do the job I think. Thanks, I'll test it. – kenorb Sep 17 '15 at 16:18
  • No worries - if it works will you put an answer in and accept it? I don't have time to test it to make sure it'll allow html – Clive Sep 17 '15 at 16:22
  • @Clive You can write an answer, and I'll accept it. I think it'll take me a while to test it yet, as I'm trying to do other stuff with entityforms meanwhile. But I'm sure it'll work:) – kenorb Sep 18 '15 at 16:48
0

As suggested by Clive, there is a Static field which provides a static text that can be configured on a per instance basis via Field API.

Just enable the module and use Field UI to add and configure the field.

There is also another module, called: Pseudo field which allows you to render an extra field as a real field (with field label).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.