Tagged: documentation, html
- This topic has 4 replies, 2 voices, and was last updated 7 years, 5 months ago by
Jason.
-
AuthorPosts
-
-
August 29, 2014 at 5:02 pm #2348
JasonKeymasterGreetings!
I’ve been using the html field a bit more recently, and I noticed something which I’m not sure if it’s intended or not. According to the html docs a field element isn’t necessary, which would make sense since it’s not storing any meta-data from the field. But, if no field is specified and more than one html field is used, then the second one will override the first. To make more than one display the field element must be included.
Whatever the intention, this should probably be made note of in the doc. 🙂
-
September 9, 2014 at 11:30 am #2405
SteveKeymaster@jason- I can’t reproduce. This is working for me. See screenshot.
piklist('field', array( 'type' => 'html' ,'label' => 'HTML Field' ,'description' => 'First field' ,'value' => 'First value' )); piklist('field', array( 'type' => 'html' ,'label' => 'HTML Field 2' ,'description' => 'Second field' ,'value' => 'Second value' ));Attachments:
You must be logged in to view attached files. -
September 9, 2014 at 11:45 am #2412
JasonKeymasterHmm.. I wonder if this is broken in 0.9.5d, then.
piklist('field', array( 'type' => 'html', 'label' => 'Field 1', 'value' => '<p>Field 1</p>', )); piklist('field', array( 'type' => 'html', 'label' => 'Field 2', 'value' => '<p>Field 2</p>', )); -
September 9, 2014 at 12:20 pm #2416
-
September 9, 2014 at 2:00 pm #2419
JasonKeymasterCool! My only concern would be that it’s not actually storing the html field in the settings, right?
-
-
AuthorPosts
- You must be logged in to reply to this topic.