3 <html lang=
"en" class=
"no-js">
7 <meta name=
"viewport" content=
"width=device-width,initial-scale=1">
11 <link rel=
"canonical" href=
"https://docs.woltlab.com/6.0/php/api/form_builder/form_fields/">
13 <link rel=
"icon" href=
"../../../../assets/default.favicon.ico">
14 <meta name=
"generator" content=
"mkdocs-1.3.1, mkdocs-material-8.3.9">
18 <title>Fields - WoltLab Suite Documentation
</title>
22 <link rel=
"stylesheet" href=
"../../../../assets/stylesheets/main.1d29e8d0.min.css">
25 <link rel=
"stylesheet" href=
"../../../../assets/stylesheets/palette.cbb835fc.min.css">
29 <meta name=
"theme-color" content=
"#009485">
39 <link rel=
"stylesheet" href=
"../../../../stylesheets/extra.css">
41 <script>__md_scope=new URL(
"../../../..",location),__md_get=(e,_=localStorage,t=__md_scope)=
>JSON.parse(_.getItem(t.pathname+
"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=
>{try{t.setItem(a.pathname+
"."+e,JSON.stringify(_))}catch(e){}}
</script>
55 <body dir=
"ltr" data-md-color-scheme=
"" data-md-color-primary=
"teal" data-md-color-accent=
"">
59 <input class=
"md-toggle" data-md-toggle=
"drawer" type=
"checkbox" id=
"__drawer" autocomplete=
"off">
60 <input class=
"md-toggle" data-md-toggle=
"search" type=
"checkbox" id=
"__search" autocomplete=
"off">
61 <label class=
"md-overlay" for=
"__drawer"></label>
62 <div data-md-component=
"skip">
65 <a href=
"#form-builder-fields" class=
"md-skip">
70 <div data-md-component=
"announce">
72 <aside class=
"md-banner">
73 <div class=
"md-banner__inner md-grid md-typeset">
75 <a href=
"https://www.woltlab.com">Back to
<strong>woltlab.com
</strong></a>
82 <div data-md-component=
"outdated" hidden
>
83 <aside class=
"md-banner md-banner--warning">
91 <header class=
"md-header" data-md-component=
"header">
92 <nav class=
"md-header__inner md-grid" aria-label=
"Header">
93 <a href=
"../../../.." title=
"WoltLab Suite Documentation" class=
"md-header__button md-logo" aria-label=
"WoltLab Suite Documentation" data-md-component=
"logo">
95 <img src=
"../../../../assets/logo.png" alt=
"logo">
98 <label class=
"md-header__button md-icon" for=
"__drawer">
99 <svg xmlns=
"http://www.w3.org/2000/svg" viewBox=
"0 0 24 24"><path d=
"M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"/></svg>
101 <div class=
"md-header__title" data-md-component=
"header-title">
102 <div class=
"md-header__ellipsis">
103 <div class=
"md-header__topic">
104 <span class=
"md-ellipsis">
105 WoltLab Suite Documentation
108 <div class=
"md-header__topic" data-md-component=
"header-topic">
109 <span class=
"md-ellipsis">
120 <label class=
"md-header__button md-icon" for=
"__search">
121 <svg xmlns=
"http://www.w3.org/2000/svg" viewBox=
"0 0 24 24"><path d=
"M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
123 <div class=
"md-search" data-md-component=
"search" role=
"dialog">
124 <label class=
"md-search__overlay" for=
"__search"></label>
125 <div class=
"md-search__inner" role=
"search">
126 <form class=
"md-search__form" name=
"search">
127 <input type=
"text" class=
"md-search__input" name=
"query" aria-label=
"Search" placeholder=
"Search" autocapitalize=
"off" autocorrect=
"off" autocomplete=
"off" spellcheck=
"false" data-md-component=
"search-query" required
>
128 <label class=
"md-search__icon md-icon" for=
"__search">
129 <svg xmlns=
"http://www.w3.org/2000/svg" viewBox=
"0 0 24 24"><path d=
"M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
130 <svg xmlns=
"http://www.w3.org/2000/svg" viewBox=
"0 0 24 24"><path d=
"M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
132 <nav class=
"md-search__options" aria-label=
"Search">
134 <button type=
"reset" class=
"md-search__icon md-icon" aria-label=
"Clear" tabindex=
"-1">
135 <svg xmlns=
"http://www.w3.org/2000/svg" viewBox=
"0 0 24 24"><path d=
"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>
140 <div class=
"md-search__output">
141 <div class=
"md-search__scrollwrap" data-md-scrollfix
>
142 <div class=
"md-search-result" data-md-component=
"search-result">
143 <div class=
"md-search-result__meta">
146 <ol class=
"md-search-result__list"></ol>
154 <div class=
"md-header__source">
155 <a href=
"https://github.com/WoltLab/docs.woltlab.com/" title=
"Go to repository" class=
"md-source" data-md-component=
"source">
156 <div class=
"md-source__icon md-icon">
158 <svg xmlns=
"http://www.w3.org/2000/svg" viewBox=
"0 0 448 512"><!--! Font Awesome Free 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--><path d=
"M439.55 236.05 244 40.45a28.87 28.87 0 0 0-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 0 1-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 0 0 0 40.81l195.61 195.6a28.86 28.86 0 0 0 40.8 0l194.69-194.69a28.86 28.86 0 0 0 0-40.81z"/></svg>
160 <div class=
"md-source__repository">
170 <div class=
"md-container" data-md-component=
"container">
177 <main class=
"md-main" data-md-component=
"main">
178 <div class=
"md-main__inner md-grid">
182 <div class=
"md-sidebar md-sidebar--primary" data-md-component=
"sidebar" data-md-type=
"navigation" >
183 <div class=
"md-sidebar__scrollwrap">
184 <div class=
"md-sidebar__inner">
188 <nav class=
"md-nav md-nav--primary" aria-label=
"Navigation" data-md-level=
"0">
189 <label class=
"md-nav__title" for=
"__drawer">
190 <a href=
"../../../.." title=
"WoltLab Suite Documentation" class=
"md-nav__button md-logo" aria-label=
"WoltLab Suite Documentation" data-md-component=
"logo">
192 <img src=
"../../../../assets/logo.png" alt=
"logo">
195 WoltLab Suite Documentation
198 <div class=
"md-nav__source">
199 <a href=
"https://github.com/WoltLab/docs.woltlab.com/" title=
"Go to repository" class=
"md-source" data-md-component=
"source">
200 <div class=
"md-source__icon md-icon">
202 <svg xmlns=
"http://www.w3.org/2000/svg" viewBox=
"0 0 448 512"><!--! Font Awesome Free 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--><path d=
"M439.55 236.05 244 40.45a28.87 28.87 0 0 0-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 0 1-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 0 0 0 40.81l195.61 195.6a28.86 28.86 0 0 0 40.8 0l194.69-194.69a28.86 28.86 0 0 0 0-40.81z"/></svg>
204 <div class=
"md-source__repository">
210 <ul class=
"md-nav__list" data-md-scrollfix
>
219 <li class=
"md-nav__item">
220 <a href=
"../../../../getting-started/" class=
"md-nav__link">
237 <li class=
"md-nav__item md-nav__item--active md-nav__item--nested">
240 <input class=
"md-nav__toggle md-toggle" data-md-toggle=
"__nav_2" type=
"checkbox" id=
"__nav_2" checked
>
245 <label class=
"md-nav__link" for=
"__nav_2">
247 <span class=
"md-nav__icon md-icon"></span>
250 <nav class=
"md-nav" aria-label=
"PHP API" data-md-level=
"1">
251 <label class=
"md-nav__title" for=
"__nav_2">
252 <span class=
"md-nav__icon md-icon"></span>
255 <ul class=
"md-nav__list" data-md-scrollfix
>
262 <li class=
"md-nav__item">
263 <a href=
"../../../pages/" class=
"md-nav__link">
276 <li class=
"md-nav__item">
277 <a href=
"../../../database-objects/" class=
"md-nav__link">
290 <li class=
"md-nav__item">
291 <a href=
"../../../database-access/" class=
"md-nav__link">
304 <li class=
"md-nav__item">
305 <a href=
"../../../exceptions/" class=
"md-nav__link">
321 <li class=
"md-nav__item md-nav__item--active md-nav__item--nested">
324 <input class=
"md-nav__toggle md-toggle" data-md-toggle=
"__nav_2_5" type=
"checkbox" id=
"__nav_2_5" checked
>
329 <label class=
"md-nav__link" for=
"__nav_2_5">
331 <span class=
"md-nav__icon md-icon"></span>
334 <nav class=
"md-nav" aria-label=
"API" data-md-level=
"2">
335 <label class=
"md-nav__title" for=
"__nav_2_5">
336 <span class=
"md-nav__icon md-icon"></span>
339 <ul class=
"md-nav__list" data-md-scrollfix
>
347 <li class=
"md-nav__item md-nav__item--nested">
350 <input class=
"md-nav__toggle md-toggle" data-md-toggle=
"__nav_2_5_1" type=
"checkbox" id=
"__nav_2_5_1" >
355 <label class=
"md-nav__link" for=
"__nav_2_5_1">
357 <span class=
"md-nav__icon md-icon"></span>
360 <nav class=
"md-nav" aria-label=
"Caches" data-md-level=
"3">
361 <label class=
"md-nav__title" for=
"__nav_2_5_1">
362 <span class=
"md-nav__icon md-icon"></span>
365 <ul class=
"md-nav__list" data-md-scrollfix
>
372 <li class=
"md-nav__item">
373 <a href=
"../../caches/" class=
"md-nav__link">
386 <li class=
"md-nav__item">
387 <a href=
"../../caches_persistent-caches/" class=
"md-nav__link">
400 <li class=
"md-nav__item">
401 <a href=
"../../caches_runtime-caches/" class=
"md-nav__link">
421 <li class=
"md-nav__item">
422 <a href=
"../../comments/" class=
"md-nav__link">
435 <li class=
"md-nav__item">
436 <a href=
"../../cronjobs/" class=
"md-nav__link">
449 <li class=
"md-nav__item">
450 <a href=
"../../events/" class=
"md-nav__link">
466 <li class=
"md-nav__item md-nav__item--active md-nav__item--nested">
469 <input class=
"md-nav__toggle md-toggle" data-md-toggle=
"__nav_2_5_5" type=
"checkbox" id=
"__nav_2_5_5" checked
>
474 <label class=
"md-nav__link" for=
"__nav_2_5_5">
476 <span class=
"md-nav__icon md-icon"></span>
479 <nav class=
"md-nav" aria-label=
"Form Builder" data-md-level=
"3">
480 <label class=
"md-nav__title" for=
"__nav_2_5_5">
481 <span class=
"md-nav__icon md-icon"></span>
484 <ul class=
"md-nav__list" data-md-scrollfix
>
491 <li class=
"md-nav__item">
492 <a href=
"../overview/" class=
"md-nav__link">
505 <li class=
"md-nav__item">
506 <a href=
"../structure/" class=
"md-nav__link">
521 <li class=
"md-nav__item md-nav__item--active">
523 <input class=
"md-nav__toggle md-toggle" data-md-toggle=
"toc" type=
"checkbox" id=
"__toc">
529 <label class=
"md-nav__link md-nav__link--active" for=
"__toc">
531 <span class=
"md-nav__icon md-icon"></span>
534 <a href=
"./" class=
"md-nav__link md-nav__link--active">
540 <nav class=
"md-nav md-nav--secondary" aria-label=
"Table of contents">
547 <label class=
"md-nav__title" for=
"__toc">
548 <span class=
"md-nav__icon md-icon"></span>
551 <ul class=
"md-nav__list" data-md-component=
"toc" data-md-scrollfix
>
553 <li class=
"md-nav__item">
554 <a href=
"#abstract-form-fields" class=
"md-nav__link">
558 <nav class=
"md-nav" aria-label=
"Abstract Form Fields">
559 <ul class=
"md-nav__list">
561 <li class=
"md-nav__item">
562 <a href=
"#abstractformfield" class=
"md-nav__link">
568 <li class=
"md-nav__item">
569 <a href=
"#abstractnumericformfield" class=
"md-nav__link">
570 AbstractNumericFormField
575 <li class=
"md-nav__item">
576 <a href=
"#abstractformfielddecorator" class=
"md-nav__link">
577 AbstractFormFieldDecorator
587 <li class=
"md-nav__item">
588 <a href=
"#general-form-fields" class=
"md-nav__link">
592 <nav class=
"md-nav" aria-label=
"General Form Fields">
593 <ul class=
"md-nav__list">
595 <li class=
"md-nav__item">
596 <a href=
"#booleanformfield" class=
"md-nav__link">
602 <li class=
"md-nav__item">
603 <a href=
"#checkboxformfield" class=
"md-nav__link">
609 <li class=
"md-nav__item">
610 <a href=
"#classnameformfield" class=
"md-nav__link">
616 <li class=
"md-nav__item">
617 <a href=
"#dateformfield" class=
"md-nav__link">
623 <li class=
"md-nav__item">
624 <a href=
"#descriptionformfield" class=
"md-nav__link">
630 <li class=
"md-nav__item">
631 <a href=
"#emailformfield" class=
"md-nav__link">
637 <li class=
"md-nav__item">
638 <a href=
"#floatformfield" class=
"md-nav__link">
644 <li class=
"md-nav__item">
645 <a href=
"#iconformfield" class=
"md-nav__link">
651 <li class=
"md-nav__item">
652 <a href=
"#integerformfield" class=
"md-nav__link">
658 <li class=
"md-nav__item">
659 <a href=
"#isdisabledformfield" class=
"md-nav__link">
665 <li class=
"md-nav__item">
666 <a href=
"#itemlistformfield" class=
"md-nav__link">
672 <li class=
"md-nav__item">
673 <a href=
"#multilinetextformfield" class=
"md-nav__link">
674 MultilineTextFormField
679 <li class=
"md-nav__item">
680 <a href=
"#multipleselectionformfield" class=
"md-nav__link">
681 MultipleSelectionFormField
686 <li class=
"md-nav__item">
687 <a href=
"#radiobuttonformfield" class=
"md-nav__link">
693 <li class=
"md-nav__item">
694 <a href=
"#ratingformfield" class=
"md-nav__link">
700 <li class=
"md-nav__item">
701 <a href=
"#showorderformfield" class=
"md-nav__link">
707 <li class=
"md-nav__item">
708 <a href=
"#singleselectionformfield" class=
"md-nav__link">
709 SingleSelectionFormField
714 <li class=
"md-nav__item">
715 <a href=
"#sortorderformfield" class=
"md-nav__link">
721 <li class=
"md-nav__item">
722 <a href=
"#textformfield" class=
"md-nav__link">
728 <li class=
"md-nav__item">
729 <a href=
"#titleformfield" class=
"md-nav__link">
735 <li class=
"md-nav__item">
736 <a href=
"#urlformfield" class=
"md-nav__link">
747 <li class=
"md-nav__item">
748 <a href=
"#specific-fields" class=
"md-nav__link">
752 <nav class=
"md-nav" aria-label=
"Specific Fields">
753 <ul class=
"md-nav__list">
755 <li class=
"md-nav__item">
756 <a href=
"#aclformfield" class=
"md-nav__link">
762 <li class=
"md-nav__item">
763 <a href=
"#buttonformfield" class=
"md-nav__link">
769 <li class=
"md-nav__item">
770 <a href=
"#captchaformfield" class=
"md-nav__link">
776 <li class=
"md-nav__item">
777 <a href=
"#colorformfield" class=
"md-nav__link">
783 <li class=
"md-nav__item">
784 <a href=
"#contentlanguageformfield" class=
"md-nav__link">
785 ContentLanguageFormField
790 <li class=
"md-nav__item">
791 <a href=
"#labelformfield" class=
"md-nav__link">
797 <li class=
"md-nav__item">
798 <a href=
"#optionformfield" class=
"md-nav__link">
804 <li class=
"md-nav__item">
805 <a href=
"#simpleaclformfield" class=
"md-nav__link">
811 <li class=
"md-nav__item">
812 <a href=
"#singlemediaselectionformfield" class=
"md-nav__link">
813 SingleMediaSelectionFormField
818 <li class=
"md-nav__item">
819 <a href=
"#tagformfield" class=
"md-nav__link">
825 <li class=
"md-nav__item">
826 <a href=
"#uploadformfield" class=
"md-nav__link">
830 <nav class=
"md-nav" aria-label=
"UploadFormField">
831 <ul class=
"md-nav__list">
833 <li class=
"md-nav__item">
834 <a href=
"#provide-value-from-database-object" class=
"md-nav__link">
835 Provide value from database object
840 <li class=
"md-nav__item">
841 <a href=
"#process-files" class=
"md-nav__link">
852 <li class=
"md-nav__item">
853 <a href=
"#userformfield" class=
"md-nav__link">
859 <li class=
"md-nav__item">
860 <a href=
"#userpasswordfield" class=
"md-nav__link">
866 <li class=
"md-nav__item">
867 <a href=
"#usergroupoptionformfield" class=
"md-nav__link">
868 UserGroupOptionFormField
873 <li class=
"md-nav__item">
874 <a href=
"#usernameformfield" class=
"md-nav__link">
885 <li class=
"md-nav__item">
886 <a href=
"#wysiwyg-form-container" class=
"md-nav__link">
887 Wysiwyg form container
890 <nav class=
"md-nav" aria-label=
"Wysiwyg form container">
891 <ul class=
"md-nav__list">
893 <li class=
"md-nav__item">
894 <a href=
"#wysiwygattachmentformfield" class=
"md-nav__link">
895 WysiwygAttachmentFormField
900 <li class=
"md-nav__item">
901 <a href=
"#wysiwygpollformcontainer" class=
"md-nav__link">
902 WysiwygPollFormContainer
907 <li class=
"md-nav__item">
908 <a href=
"#wysiwygsmileyformcontainer" class=
"md-nav__link">
909 WysiwygSmileyFormContainer
912 <nav class=
"md-nav" aria-label=
"WysiwygSmileyFormContainer">
913 <ul class=
"md-nav__list">
915 <li class=
"md-nav__item">
916 <a href=
"#wysiwygsmileyformnode" class=
"md-nav__link">
917 WysiwygSmileyFormNode
927 <li class=
"md-nav__item">
928 <a href=
"#example" class=
"md-nav__link">
934 <li class=
"md-nav__item">
935 <a href=
"#wysiwygformfield" class=
"md-nav__link">
941 <li class=
"md-nav__item">
942 <a href=
"#twysiwygformnode" class=
"md-nav__link">
953 <li class=
"md-nav__item">
954 <a href=
"#application-specific-form-fields" class=
"md-nav__link">
955 Application-Specific Form Fields
958 <nav class=
"md-nav" aria-label=
"Application-Specific Form Fields">
959 <ul class=
"md-nav__list">
961 <li class=
"md-nav__item">
962 <a href=
"#woltlab-suite-forum" class=
"md-nav__link">
966 <nav class=
"md-nav" aria-label=
"WoltLab Suite Forum">
967 <ul class=
"md-nav__list">
969 <li class=
"md-nav__item">
970 <a href=
"#multipleboardselectionformfield" class=
"md-nav__link">
971 MultipleBoardSelectionFormField
986 <li class=
"md-nav__item">
987 <a href=
"#single-use-form-fields" class=
"md-nav__link">
988 Single-Use Form Fields
991 <nav class=
"md-nav" aria-label=
"Single-Use Form Fields">
992 <ul class=
"md-nav__list">
994 <li class=
"md-nav__item">
995 <a href=
"#bbcodeattributesformfield" class=
"md-nav__link">
996 BBCodeAttributesFormField
1001 <li class=
"md-nav__item">
1002 <a href=
"#devtoolsprojectexcludedpackagesformfield" class=
"md-nav__link">
1003 DevtoolsProjectExcludedPackagesFormField
1008 <li class=
"md-nav__item">
1009 <a href=
"#devtoolsprojectinstructionsformfield" class=
"md-nav__link">
1010 DevtoolsProjectInstructionsFormField
1015 <li class=
"md-nav__item">
1016 <a href=
"#devtoolsprojectoptionalpackagesformfield" class=
"md-nav__link">
1017 DevtoolsProjectOptionalPackagesFormField
1022 <li class=
"md-nav__item">
1023 <a href=
"#devtoolsprojectrequiredpackagesformfield" class=
"md-nav__link">
1024 DevtoolsProjectRequiredPackagesFormField
1048 <li class=
"md-nav__item">
1049 <a href=
"../validation_data/" class=
"md-nav__link">
1062 <li class=
"md-nav__item">
1063 <a href=
"../dependencies/" class=
"md-nav__link">
1083 <li class=
"md-nav__item">
1084 <a href=
"../../package_installation_plugins/" class=
"md-nav__link">
1085 Package Installation Plugins
1097 <li class=
"md-nav__item">
1098 <a href=
"../../user_activity_points/" class=
"md-nav__link">
1099 User Activity Points
1111 <li class=
"md-nav__item">
1112 <a href=
"../../user_notifications/" class=
"md-nav__link">
1125 <li class=
"md-nav__item">
1126 <a href=
"../../sitemaps/" class=
"md-nav__link">
1146 <li class=
"md-nav__item">
1147 <a href=
"../../../code-style/" class=
"md-nav__link">
1160 <li class=
"md-nav__item">
1161 <a href=
"../../../apps/" class=
"md-nav__link">
1174 <li class=
"md-nav__item">
1175 <a href=
"../../../gdpr/" class=
"md-nav__link">
1197 <li class=
"md-nav__item md-nav__item--nested">
1200 <input class=
"md-nav__toggle md-toggle" data-md-toggle=
"__nav_3" type=
"checkbox" id=
"__nav_3" >
1205 <label class=
"md-nav__link" for=
"__nav_3">
1206 Languages, Templates & CSS
1207 <span class=
"md-nav__icon md-icon"></span>
1210 <nav class=
"md-nav" aria-label=
"Languages, Templates & CSS" data-md-level=
"1">
1211 <label class=
"md-nav__title" for=
"__nav_3">
1212 <span class=
"md-nav__icon md-icon"></span>
1213 Languages, Templates & CSS
1215 <ul class=
"md-nav__list" data-md-scrollfix
>
1222 <li class=
"md-nav__item">
1223 <a href=
"../../../../view/languages/" class=
"md-nav__link">
1236 <li class=
"md-nav__item">
1237 <a href=
"../../../../view/templates/" class=
"md-nav__link">
1250 <li class=
"md-nav__item">
1251 <a href=
"../../../../view/template-plugins/" class=
"md-nav__link">
1264 <li class=
"md-nav__item">
1265 <a href=
"../../../../view/css/" class=
"md-nav__link">
1287 <li class=
"md-nav__item md-nav__item--nested">
1290 <input class=
"md-nav__toggle md-toggle" data-md-toggle=
"__nav_4" type=
"checkbox" id=
"__nav_4" >
1295 <label class=
"md-nav__link" for=
"__nav_4">
1296 TypeScript and JavaScript API
1297 <span class=
"md-nav__icon md-icon"></span>
1300 <nav class=
"md-nav" aria-label=
"TypeScript and JavaScript API" data-md-level=
"1">
1301 <label class=
"md-nav__title" for=
"__nav_4">
1302 <span class=
"md-nav__icon md-icon"></span>
1303 TypeScript and JavaScript API
1305 <ul class=
"md-nav__list" data-md-scrollfix
>
1312 <li class=
"md-nav__item">
1313 <a href=
"../../../../javascript/general-usage/" class=
"md-nav__link">
1326 <li class=
"md-nav__item">
1327 <a href=
"../../../../javascript/typescript/" class=
"md-nav__link">
1341 <li class=
"md-nav__item md-nav__item--nested">
1344 <input class=
"md-nav__toggle md-toggle" data-md-toggle=
"__nav_4_3" type=
"checkbox" id=
"__nav_4_3" >
1349 <label class=
"md-nav__link" for=
"__nav_4_3">
1351 <span class=
"md-nav__icon md-icon"></span>
1354 <nav class=
"md-nav" aria-label=
"New API" data-md-level=
"2">
1355 <label class=
"md-nav__title" for=
"__nav_4_3">
1356 <span class=
"md-nav__icon md-icon"></span>
1359 <ul class=
"md-nav__list" data-md-scrollfix
>
1366 <li class=
"md-nav__item">
1367 <a href=
"../../../../javascript/new-api_writing-a-module/" class=
"md-nav__link">
1380 <li class=
"md-nav__item">
1381 <a href=
"../../../../javascript/new-api_data-structures/" class=
"md-nav__link">
1394 <li class=
"md-nav__item">
1395 <a href=
"../../../../javascript/new-api_core/" class=
"md-nav__link">
1408 <li class=
"md-nav__item">
1409 <a href=
"../../../../javascript/new-api_dom/" class=
"md-nav__link">
1422 <li class=
"md-nav__item">
1423 <a href=
"../../../../javascript/new-api_events/" class=
"md-nav__link">
1436 <li class=
"md-nav__item">
1437 <a href=
"../../../../javascript/new-api_ajax/" class=
"md-nav__link">
1450 <li class=
"md-nav__item">
1451 <a href=
"../../../../javascript/new-api_dialogs/" class=
"md-nav__link">
1464 <li class=
"md-nav__item">
1465 <a href=
"../../../../javascript/new-api_browser/" class=
"md-nav__link">
1466 Browser and Screen Sizes
1478 <li class=
"md-nav__item">
1479 <a href=
"../../../../javascript/new-api_ui/" class=
"md-nav__link">
1499 <li class=
"md-nav__item">
1500 <a href=
"../../../../javascript/legacy-api/" class=
"md-nav__link">
1513 <li class=
"md-nav__item">
1514 <a href=
"../../../../javascript/helper-functions/" class=
"md-nav__link">
1527 <li class=
"md-nav__item">
1528 <a href=
"../../../../javascript/code-snippets/" class=
"md-nav__link">
1550 <li class=
"md-nav__item md-nav__item--nested">
1553 <input class=
"md-nav__toggle md-toggle" data-md-toggle=
"__nav_5" type=
"checkbox" id=
"__nav_5" >
1558 <label class=
"md-nav__link" for=
"__nav_5">
1560 <span class=
"md-nav__icon md-icon"></span>
1563 <nav class=
"md-nav" aria-label=
"Package Components" data-md-level=
"1">
1564 <label class=
"md-nav__title" for=
"__nav_5">
1565 <span class=
"md-nav__icon md-icon"></span>
1568 <ul class=
"md-nav__list" data-md-scrollfix
>
1575 <li class=
"md-nav__item">
1576 <a href=
"../../../../package/package-xml/" class=
"md-nav__link">
1590 <li class=
"md-nav__item md-nav__item--nested">
1593 <input class=
"md-nav__toggle md-toggle" data-md-toggle=
"__nav_5_2" type=
"checkbox" id=
"__nav_5_2" >
1598 <label class=
"md-nav__link" for=
"__nav_5_2">
1600 <span class=
"md-nav__icon md-icon"></span>
1603 <nav class=
"md-nav" aria-label=
"PIPs" data-md-level=
"2">
1604 <label class=
"md-nav__title" for=
"__nav_5_2">
1605 <span class=
"md-nav__icon md-icon"></span>
1608 <ul class=
"md-nav__list" data-md-scrollfix
>
1615 <li class=
"md-nav__item">
1616 <a href=
"../../../../package/pip/" class=
"md-nav__link">
1629 <li class=
"md-nav__item">
1630 <a href=
"../../../../package/pip/acl-option/" class=
"md-nav__link">
1643 <li class=
"md-nav__item">
1644 <a href=
"../../../../package/pip/acp-menu/" class=
"md-nav__link">
1657 <li class=
"md-nav__item">
1658 <a href=
"../../../../package/pip/acp-search-provider/" class=
"md-nav__link">
1671 <li class=
"md-nav__item">
1672 <a href=
"../../../../package/pip/acp-template/" class=
"md-nav__link">
1685 <li class=
"md-nav__item">
1686 <a href=
"../../../../package/pip/acp-template-delete/" class=
"md-nav__link">
1699 <li class=
"md-nav__item">
1700 <a href=
"../../../../package/pip/bbcode/" class=
"md-nav__link">
1713 <li class=
"md-nav__item">
1714 <a href=
"../../../../package/pip/box/" class=
"md-nav__link">
1727 <li class=
"md-nav__item">
1728 <a href=
"../../../../package/pip/clipboard-action/" class=
"md-nav__link">
1741 <li class=
"md-nav__item">
1742 <a href=
"../../../../package/pip/core-object/" class=
"md-nav__link">
1755 <li class=
"md-nav__item">
1756 <a href=
"../../../../package/pip/cronjob/" class=
"md-nav__link">
1769 <li class=
"md-nav__item">
1770 <a href=
"../../../../package/pip/database/" class=
"md-nav__link">
1783 <li class=
"md-nav__item">
1784 <a href=
"../../../../package/pip/event-listener/" class=
"md-nav__link">
1797 <li class=
"md-nav__item">
1798 <a href=
"../../../../package/pip/file/" class=
"md-nav__link">
1811 <li class=
"md-nav__item">
1812 <a href=
"../../../../package/pip/file-delete/" class=
"md-nav__link">
1825 <li class=
"md-nav__item">
1826 <a href=
"../../../../package/pip/language/" class=
"md-nav__link">
1839 <li class=
"md-nav__item">
1840 <a href=
"../../../../package/pip/media-provider/" class=
"md-nav__link">
1853 <li class=
"md-nav__item">
1854 <a href=
"../../../../package/pip/menu/" class=
"md-nav__link">
1867 <li class=
"md-nav__item">
1868 <a href=
"../../../../package/pip/menu-item/" class=
"md-nav__link">
1881 <li class=
"md-nav__item">
1882 <a href=
"../../../../package/pip/object-type/" class=
"md-nav__link">
1895 <li class=
"md-nav__item">
1896 <a href=
"../../../../package/pip/object-type-definition/" class=
"md-nav__link">
1897 objectTypeDefinition
1909 <li class=
"md-nav__item">
1910 <a href=
"../../../../package/pip/option/" class=
"md-nav__link">
1923 <li class=
"md-nav__item">
1924 <a href=
"../../../../package/pip/page/" class=
"md-nav__link">
1937 <li class=
"md-nav__item">
1938 <a href=
"../../../../package/pip/pip/" class=
"md-nav__link">
1951 <li class=
"md-nav__item">
1952 <a href=
"../../../../package/pip/script/" class=
"md-nav__link">
1965 <li class=
"md-nav__item">
1966 <a href=
"../../../../package/pip/smiley/" class=
"md-nav__link">
1979 <li class=
"md-nav__item">
1980 <a href=
"../../../../package/pip/sql/" class=
"md-nav__link">
1993 <li class=
"md-nav__item">
1994 <a href=
"../../../../package/pip/style/" class=
"md-nav__link">
2007 <li class=
"md-nav__item">
2008 <a href=
"../../../../package/pip/template/" class=
"md-nav__link">
2021 <li class=
"md-nav__item">
2022 <a href=
"../../../../package/pip/template-delete/" class=
"md-nav__link">
2035 <li class=
"md-nav__item">
2036 <a href=
"../../../../package/pip/template-listener/" class=
"md-nav__link">
2049 <li class=
"md-nav__item">
2050 <a href=
"../../../../package/pip/user-group-option/" class=
"md-nav__link">
2063 <li class=
"md-nav__item">
2064 <a href=
"../../../../package/pip/user-menu/" class=
"md-nav__link">
2077 <li class=
"md-nav__item">
2078 <a href=
"../../../../package/pip/user-notification-event/" class=
"md-nav__link">
2079 userNotificationEvent
2091 <li class=
"md-nav__item">
2092 <a href=
"../../../../package/pip/user-option/" class=
"md-nav__link">
2105 <li class=
"md-nav__item">
2106 <a href=
"../../../../package/pip/user-profile-menu/" class=
"md-nav__link">
2126 <li class=
"md-nav__item">
2127 <a href=
"../../../../package/database-php-api/" class=
"md-nav__link">
2149 <li class=
"md-nav__item md-nav__item--nested">
2152 <input class=
"md-nav__toggle md-toggle" data-md-toggle=
"__nav_6" type=
"checkbox" id=
"__nav_6" >
2157 <label class=
"md-nav__link" for=
"__nav_6">
2159 <span class=
"md-nav__icon md-icon"></span>
2162 <nav class=
"md-nav" aria-label=
"Migration" data-md-level=
"1">
2163 <label class=
"md-nav__title" for=
"__nav_6">
2164 <span class=
"md-nav__icon md-icon"></span>
2167 <ul class=
"md-nav__list" data-md-scrollfix
>
2175 <li class=
"md-nav__item md-nav__item--nested">
2178 <input class=
"md-nav__toggle md-toggle" data-md-toggle=
"__nav_6_1" type=
"checkbox" id=
"__nav_6_1" >
2183 <label class=
"md-nav__link" for=
"__nav_6_1">
2184 From WoltLab Suite
5.5
2185 <span class=
"md-nav__icon md-icon"></span>
2188 <nav class=
"md-nav" aria-label=
"From WoltLab Suite 5.5" data-md-level=
"2">
2189 <label class=
"md-nav__title" for=
"__nav_6_1">
2190 <span class=
"md-nav__icon md-icon"></span>
2191 From WoltLab Suite
5.5
2193 <ul class=
"md-nav__list" data-md-scrollfix
>
2200 <li class=
"md-nav__item">
2201 <a href=
"../../../../migration/wsc55/php/" class=
"md-nav__link">
2214 <li class=
"md-nav__item">
2215 <a href=
"../../../../migration/wsc55/javascript/" class=
"md-nav__link">
2216 TypeScript and JavaScript
2228 <li class=
"md-nav__item">
2229 <a href=
"../../../../migration/wsc55/templates/" class=
"md-nav__link">
2242 <li class=
"md-nav__item">
2243 <a href=
"../../../../migration/wsc55/libraries/" class=
"md-nav__link">
2244 Third Party Libraries
2256 <li class=
"md-nav__item">
2257 <a href=
"../../../../migration/wsc55/deprecations_removals/" class=
"md-nav__link">
2258 Deprecations and Removals
2278 <li class=
"md-nav__item md-nav__item--nested">
2281 <input class=
"md-nav__toggle md-toggle" data-md-toggle=
"__nav_6_2" type=
"checkbox" id=
"__nav_6_2" >
2286 <label class=
"md-nav__link" for=
"__nav_6_2">
2287 From WoltLab Suite
5.4
2288 <span class=
"md-nav__icon md-icon"></span>
2291 <nav class=
"md-nav" aria-label=
"From WoltLab Suite 5.4" data-md-level=
"2">
2292 <label class=
"md-nav__title" for=
"__nav_6_2">
2293 <span class=
"md-nav__icon md-icon"></span>
2294 From WoltLab Suite
5.4
2296 <ul class=
"md-nav__list" data-md-scrollfix
>
2303 <li class=
"md-nav__item">
2304 <a href=
"../../../../migration/wsc54/php/" class=
"md-nav__link">
2317 <li class=
"md-nav__item">
2318 <a href=
"../../../../migration/wsc54/javascript/" class=
"md-nav__link">
2319 TypeScript and JavaScript
2331 <li class=
"md-nav__item">
2332 <a href=
"../../../../migration/wsc54/templates/" class=
"md-nav__link">
2345 <li class=
"md-nav__item">
2346 <a href=
"../../../../migration/wsc54/libraries/" class=
"md-nav__link">
2347 Third Party Libraries
2359 <li class=
"md-nav__item">
2360 <a href=
"../../../../migration/wsc54/deprecations_removals/" class=
"md-nav__link">
2361 Deprecations and Removals
2381 <li class=
"md-nav__item md-nav__item--nested">
2384 <input class=
"md-nav__toggle md-toggle" data-md-toggle=
"__nav_6_3" type=
"checkbox" id=
"__nav_6_3" >
2389 <label class=
"md-nav__link" for=
"__nav_6_3">
2390 From WoltLab Suite
5.3
2391 <span class=
"md-nav__icon md-icon"></span>
2394 <nav class=
"md-nav" aria-label=
"From WoltLab Suite 5.3" data-md-level=
"2">
2395 <label class=
"md-nav__title" for=
"__nav_6_3">
2396 <span class=
"md-nav__icon md-icon"></span>
2397 From WoltLab Suite
5.3
2399 <ul class=
"md-nav__list" data-md-scrollfix
>
2406 <li class=
"md-nav__item">
2407 <a href=
"../../../../migration/wsc53/php/" class=
"md-nav__link">
2420 <li class=
"md-nav__item">
2421 <a href=
"../../../../migration/wsc53/session/" class=
"md-nav__link">
2422 Session Handling and Authentication
2434 <li class=
"md-nav__item">
2435 <a href=
"../../../../migration/wsc53/javascript/" class=
"md-nav__link">
2436 TypeScript and JavaScript
2448 <li class=
"md-nav__item">
2449 <a href=
"../../../../migration/wsc53/templates/" class=
"md-nav__link">
2462 <li class=
"md-nav__item">
2463 <a href=
"../../../../migration/wsc53/libraries/" class=
"md-nav__link">
2464 Third Party Libraries
2484 <li class=
"md-nav__item md-nav__item--nested">
2487 <input class=
"md-nav__toggle md-toggle" data-md-toggle=
"__nav_6_4" type=
"checkbox" id=
"__nav_6_4" >
2492 <label class=
"md-nav__link" for=
"__nav_6_4">
2493 From WoltLab Suite
5.2
2494 <span class=
"md-nav__icon md-icon"></span>
2497 <nav class=
"md-nav" aria-label=
"From WoltLab Suite 5.2" data-md-level=
"2">
2498 <label class=
"md-nav__title" for=
"__nav_6_4">
2499 <span class=
"md-nav__icon md-icon"></span>
2500 From WoltLab Suite
5.2
2502 <ul class=
"md-nav__list" data-md-scrollfix
>
2509 <li class=
"md-nav__item">
2510 <a href=
"../../../../migration/wsc52/php/" class=
"md-nav__link">
2523 <li class=
"md-nav__item">
2524 <a href=
"../../../../migration/wsc52/templates/" class=
"md-nav__link">
2525 Templates and Languages
2537 <li class=
"md-nav__item">
2538 <a href=
"../../../../migration/wsc52/libraries/" class=
"md-nav__link">
2539 Third Party Libraries
2559 <li class=
"md-nav__item md-nav__item--nested">
2562 <input class=
"md-nav__toggle md-toggle" data-md-toggle=
"__nav_6_5" type=
"checkbox" id=
"__nav_6_5" >
2567 <label class=
"md-nav__link" for=
"__nav_6_5">
2568 From WoltLab Suite
3.1
2569 <span class=
"md-nav__icon md-icon"></span>
2572 <nav class=
"md-nav" aria-label=
"From WoltLab Suite 3.1" data-md-level=
"2">
2573 <label class=
"md-nav__title" for=
"__nav_6_5">
2574 <span class=
"md-nav__icon md-icon"></span>
2575 From WoltLab Suite
3.1
2577 <ul class=
"md-nav__list" data-md-scrollfix
>
2584 <li class=
"md-nav__item">
2585 <a href=
"../../../../migration/wsc31/php/" class=
"md-nav__link">
2606 <li class=
"md-nav__item md-nav__item--nested">
2609 <input class=
"md-nav__toggle md-toggle" data-md-toggle=
"__nav_6_6" type=
"checkbox" id=
"__nav_6_6" >
2614 <label class=
"md-nav__link" for=
"__nav_6_6">
2615 From WoltLab Suite
3.0
2616 <span class=
"md-nav__icon md-icon"></span>
2619 <nav class=
"md-nav" aria-label=
"From WoltLab Suite 3.0" data-md-level=
"2">
2620 <label class=
"md-nav__title" for=
"__nav_6_6">
2621 <span class=
"md-nav__icon md-icon"></span>
2622 From WoltLab Suite
3.0
2624 <ul class=
"md-nav__list" data-md-scrollfix
>
2631 <li class=
"md-nav__item">
2632 <a href=
"../../../../migration/wsc30/php/" class=
"md-nav__link">
2645 <li class=
"md-nav__item">
2646 <a href=
"../../../../migration/wsc30/javascript/" class=
"md-nav__link">
2659 <li class=
"md-nav__item">
2660 <a href=
"../../../../migration/wsc30/templates/" class=
"md-nav__link">
2673 <li class=
"md-nav__item">
2674 <a href=
"../../../../migration/wsc30/css/" class=
"md-nav__link">
2687 <li class=
"md-nav__item">
2688 <a href=
"../../../../migration/wsc30/package/" class=
"md-nav__link">
2709 <li class=
"md-nav__item md-nav__item--nested">
2712 <input class=
"md-nav__toggle md-toggle" data-md-toggle=
"__nav_6_7" type=
"checkbox" id=
"__nav_6_7" >
2717 <label class=
"md-nav__link" for=
"__nav_6_7">
2719 <span class=
"md-nav__icon md-icon"></span>
2722 <nav class=
"md-nav" aria-label=
"From WCF 2.1" data-md-level=
"2">
2723 <label class=
"md-nav__title" for=
"__nav_6_7">
2724 <span class=
"md-nav__icon md-icon"></span>
2727 <ul class=
"md-nav__list" data-md-scrollfix
>
2734 <li class=
"md-nav__item">
2735 <a href=
"../../../../migration/wcf21/php/" class=
"md-nav__link">
2748 <li class=
"md-nav__item">
2749 <a href=
"../../../../migration/wcf21/templates/" class=
"md-nav__link">
2762 <li class=
"md-nav__item">
2763 <a href=
"../../../../migration/wcf21/css/" class=
"md-nav__link">
2776 <li class=
"md-nav__item">
2777 <a href=
"../../../../migration/wcf21/package/" class=
"md-nav__link">
2806 <li class=
"md-nav__item md-nav__item--nested">
2809 <input class=
"md-nav__toggle md-toggle" data-md-toggle=
"__nav_7" type=
"checkbox" id=
"__nav_7" >
2814 <label class=
"md-nav__link" for=
"__nav_7">
2816 <span class=
"md-nav__icon md-icon"></span>
2819 <nav class=
"md-nav" aria-label=
"Tutorials" data-md-level=
"1">
2820 <label class=
"md-nav__title" for=
"__nav_7">
2821 <span class=
"md-nav__icon md-icon"></span>
2824 <ul class=
"md-nav__list" data-md-scrollfix
>
2832 <li class=
"md-nav__item md-nav__item--nested">
2835 <input class=
"md-nav__toggle md-toggle" data-md-toggle=
"__nav_7_1" type=
"checkbox" id=
"__nav_7_1" >
2840 <label class=
"md-nav__link" for=
"__nav_7_1">
2842 <span class=
"md-nav__icon md-icon"></span>
2845 <nav class=
"md-nav" aria-label=
"Tutorial Series" data-md-level=
"2">
2846 <label class=
"md-nav__title" for=
"__nav_7_1">
2847 <span class=
"md-nav__icon md-icon"></span>
2850 <ul class=
"md-nav__list" data-md-scrollfix
>
2857 <li class=
"md-nav__item">
2858 <a href=
"../../../../tutorial/series/overview/" class=
"md-nav__link">
2871 <li class=
"md-nav__item">
2872 <a href=
"../../../../tutorial/series/part_1/" class=
"md-nav__link">
2885 <li class=
"md-nav__item">
2886 <a href=
"../../../../tutorial/series/part_2/" class=
"md-nav__link">
2899 <li class=
"md-nav__item">
2900 <a href=
"../../../../tutorial/series/part_3/" class=
"md-nav__link">
2913 <li class=
"md-nav__item">
2914 <a href=
"../../../../tutorial/series/part_4/" class=
"md-nav__link">
2927 <li class=
"md-nav__item">
2928 <a href=
"../../../../tutorial/series/part_5/" class=
"md-nav__link">
2941 <li class=
"md-nav__item">
2942 <a href=
"../../../../tutorial/series/part_6/" class=
"md-nav__link">
2971 <div class=
"md-sidebar md-sidebar--secondary" data-md-component=
"sidebar" data-md-type=
"toc" >
2972 <div class=
"md-sidebar__scrollwrap">
2973 <div class=
"md-sidebar__inner">
2976 <nav class=
"md-nav md-nav--secondary" aria-label=
"Table of contents">
2983 <label class=
"md-nav__title" for=
"__toc">
2984 <span class=
"md-nav__icon md-icon"></span>
2987 <ul class=
"md-nav__list" data-md-component=
"toc" data-md-scrollfix
>
2989 <li class=
"md-nav__item">
2990 <a href=
"#abstract-form-fields" class=
"md-nav__link">
2991 Abstract Form Fields
2994 <nav class=
"md-nav" aria-label=
"Abstract Form Fields">
2995 <ul class=
"md-nav__list">
2997 <li class=
"md-nav__item">
2998 <a href=
"#abstractformfield" class=
"md-nav__link">
3004 <li class=
"md-nav__item">
3005 <a href=
"#abstractnumericformfield" class=
"md-nav__link">
3006 AbstractNumericFormField
3011 <li class=
"md-nav__item">
3012 <a href=
"#abstractformfielddecorator" class=
"md-nav__link">
3013 AbstractFormFieldDecorator
3023 <li class=
"md-nav__item">
3024 <a href=
"#general-form-fields" class=
"md-nav__link">
3028 <nav class=
"md-nav" aria-label=
"General Form Fields">
3029 <ul class=
"md-nav__list">
3031 <li class=
"md-nav__item">
3032 <a href=
"#booleanformfield" class=
"md-nav__link">
3038 <li class=
"md-nav__item">
3039 <a href=
"#checkboxformfield" class=
"md-nav__link">
3045 <li class=
"md-nav__item">
3046 <a href=
"#classnameformfield" class=
"md-nav__link">
3052 <li class=
"md-nav__item">
3053 <a href=
"#dateformfield" class=
"md-nav__link">
3059 <li class=
"md-nav__item">
3060 <a href=
"#descriptionformfield" class=
"md-nav__link">
3061 DescriptionFormField
3066 <li class=
"md-nav__item">
3067 <a href=
"#emailformfield" class=
"md-nav__link">
3073 <li class=
"md-nav__item">
3074 <a href=
"#floatformfield" class=
"md-nav__link">
3080 <li class=
"md-nav__item">
3081 <a href=
"#iconformfield" class=
"md-nav__link">
3087 <li class=
"md-nav__item">
3088 <a href=
"#integerformfield" class=
"md-nav__link">
3094 <li class=
"md-nav__item">
3095 <a href=
"#isdisabledformfield" class=
"md-nav__link">
3101 <li class=
"md-nav__item">
3102 <a href=
"#itemlistformfield" class=
"md-nav__link">
3108 <li class=
"md-nav__item">
3109 <a href=
"#multilinetextformfield" class=
"md-nav__link">
3110 MultilineTextFormField
3115 <li class=
"md-nav__item">
3116 <a href=
"#multipleselectionformfield" class=
"md-nav__link">
3117 MultipleSelectionFormField
3122 <li class=
"md-nav__item">
3123 <a href=
"#radiobuttonformfield" class=
"md-nav__link">
3124 RadioButtonFormField
3129 <li class=
"md-nav__item">
3130 <a href=
"#ratingformfield" class=
"md-nav__link">
3136 <li class=
"md-nav__item">
3137 <a href=
"#showorderformfield" class=
"md-nav__link">
3143 <li class=
"md-nav__item">
3144 <a href=
"#singleselectionformfield" class=
"md-nav__link">
3145 SingleSelectionFormField
3150 <li class=
"md-nav__item">
3151 <a href=
"#sortorderformfield" class=
"md-nav__link">
3157 <li class=
"md-nav__item">
3158 <a href=
"#textformfield" class=
"md-nav__link">
3164 <li class=
"md-nav__item">
3165 <a href=
"#titleformfield" class=
"md-nav__link">
3171 <li class=
"md-nav__item">
3172 <a href=
"#urlformfield" class=
"md-nav__link">
3183 <li class=
"md-nav__item">
3184 <a href=
"#specific-fields" class=
"md-nav__link">
3188 <nav class=
"md-nav" aria-label=
"Specific Fields">
3189 <ul class=
"md-nav__list">
3191 <li class=
"md-nav__item">
3192 <a href=
"#aclformfield" class=
"md-nav__link">
3198 <li class=
"md-nav__item">
3199 <a href=
"#buttonformfield" class=
"md-nav__link">
3205 <li class=
"md-nav__item">
3206 <a href=
"#captchaformfield" class=
"md-nav__link">
3212 <li class=
"md-nav__item">
3213 <a href=
"#colorformfield" class=
"md-nav__link">
3219 <li class=
"md-nav__item">
3220 <a href=
"#contentlanguageformfield" class=
"md-nav__link">
3221 ContentLanguageFormField
3226 <li class=
"md-nav__item">
3227 <a href=
"#labelformfield" class=
"md-nav__link">
3233 <li class=
"md-nav__item">
3234 <a href=
"#optionformfield" class=
"md-nav__link">
3240 <li class=
"md-nav__item">
3241 <a href=
"#simpleaclformfield" class=
"md-nav__link">
3247 <li class=
"md-nav__item">
3248 <a href=
"#singlemediaselectionformfield" class=
"md-nav__link">
3249 SingleMediaSelectionFormField
3254 <li class=
"md-nav__item">
3255 <a href=
"#tagformfield" class=
"md-nav__link">
3261 <li class=
"md-nav__item">
3262 <a href=
"#uploadformfield" class=
"md-nav__link">
3266 <nav class=
"md-nav" aria-label=
"UploadFormField">
3267 <ul class=
"md-nav__list">
3269 <li class=
"md-nav__item">
3270 <a href=
"#provide-value-from-database-object" class=
"md-nav__link">
3271 Provide value from database object
3276 <li class=
"md-nav__item">
3277 <a href=
"#process-files" class=
"md-nav__link">
3288 <li class=
"md-nav__item">
3289 <a href=
"#userformfield" class=
"md-nav__link">
3295 <li class=
"md-nav__item">
3296 <a href=
"#userpasswordfield" class=
"md-nav__link">
3302 <li class=
"md-nav__item">
3303 <a href=
"#usergroupoptionformfield" class=
"md-nav__link">
3304 UserGroupOptionFormField
3309 <li class=
"md-nav__item">
3310 <a href=
"#usernameformfield" class=
"md-nav__link">
3321 <li class=
"md-nav__item">
3322 <a href=
"#wysiwyg-form-container" class=
"md-nav__link">
3323 Wysiwyg form container
3326 <nav class=
"md-nav" aria-label=
"Wysiwyg form container">
3327 <ul class=
"md-nav__list">
3329 <li class=
"md-nav__item">
3330 <a href=
"#wysiwygattachmentformfield" class=
"md-nav__link">
3331 WysiwygAttachmentFormField
3336 <li class=
"md-nav__item">
3337 <a href=
"#wysiwygpollformcontainer" class=
"md-nav__link">
3338 WysiwygPollFormContainer
3343 <li class=
"md-nav__item">
3344 <a href=
"#wysiwygsmileyformcontainer" class=
"md-nav__link">
3345 WysiwygSmileyFormContainer
3348 <nav class=
"md-nav" aria-label=
"WysiwygSmileyFormContainer">
3349 <ul class=
"md-nav__list">
3351 <li class=
"md-nav__item">
3352 <a href=
"#wysiwygsmileyformnode" class=
"md-nav__link">
3353 WysiwygSmileyFormNode
3363 <li class=
"md-nav__item">
3364 <a href=
"#example" class=
"md-nav__link">
3370 <li class=
"md-nav__item">
3371 <a href=
"#wysiwygformfield" class=
"md-nav__link">
3377 <li class=
"md-nav__item">
3378 <a href=
"#twysiwygformnode" class=
"md-nav__link">
3389 <li class=
"md-nav__item">
3390 <a href=
"#application-specific-form-fields" class=
"md-nav__link">
3391 Application-Specific Form Fields
3394 <nav class=
"md-nav" aria-label=
"Application-Specific Form Fields">
3395 <ul class=
"md-nav__list">
3397 <li class=
"md-nav__item">
3398 <a href=
"#woltlab-suite-forum" class=
"md-nav__link">
3402 <nav class=
"md-nav" aria-label=
"WoltLab Suite Forum">
3403 <ul class=
"md-nav__list">
3405 <li class=
"md-nav__item">
3406 <a href=
"#multipleboardselectionformfield" class=
"md-nav__link">
3407 MultipleBoardSelectionFormField
3422 <li class=
"md-nav__item">
3423 <a href=
"#single-use-form-fields" class=
"md-nav__link">
3424 Single-Use Form Fields
3427 <nav class=
"md-nav" aria-label=
"Single-Use Form Fields">
3428 <ul class=
"md-nav__list">
3430 <li class=
"md-nav__item">
3431 <a href=
"#bbcodeattributesformfield" class=
"md-nav__link">
3432 BBCodeAttributesFormField
3437 <li class=
"md-nav__item">
3438 <a href=
"#devtoolsprojectexcludedpackagesformfield" class=
"md-nav__link">
3439 DevtoolsProjectExcludedPackagesFormField
3444 <li class=
"md-nav__item">
3445 <a href=
"#devtoolsprojectinstructionsformfield" class=
"md-nav__link">
3446 DevtoolsProjectInstructionsFormField
3451 <li class=
"md-nav__item">
3452 <a href=
"#devtoolsprojectoptionalpackagesformfield" class=
"md-nav__link">
3453 DevtoolsProjectOptionalPackagesFormField
3458 <li class=
"md-nav__item">
3459 <a href=
"#devtoolsprojectrequiredpackagesformfield" class=
"md-nav__link">
3460 DevtoolsProjectRequiredPackagesFormField
3478 <div class=
"md-content" data-md-component=
"content">
3479 <article class=
"md-content__inner md-typeset">
3482 <a href=
"https://github.com/WoltLab/docs.woltlab.com/edit/6.0/docs/php/api/form_builder/form_fields.md" title=
"Edit this page" class=
"md-content__button md-icon">
3483 <svg xmlns=
"http://www.w3.org/2000/svg" viewBox=
"0 0 24 24"><path d=
"M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83 3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75L3 17.25Z"/></svg>
3488 <h1 id=
"form-builder-fields">Form Builder Fields
<a class=
"headerlink" href=
"#form-builder-fields" title=
"Permanent link">#
</a></h1>
3489 <h2 id=
"abstract-form-fields">Abstract Form Fields
<a class=
"headerlink" href=
"#abstract-form-fields" title=
"Permanent link">#
</a></h2>
3490 <p>The following form field classes cannot be instantiated directly because they are abstract, but they can/must be used when creating own form field classes.
</p>
3491 <h3 id=
"abstractformfield"><code>AbstractFormField
</code><a class=
"headerlink" href=
"#abstractformfield" title=
"Permanent link">#
</a></h3>
3492 <p><code>AbstractFormField
</code> is the abstract default implementation of the
<code>IFormField
</code> interface and it is expected that every implementation of
<code>IFormField
</code> implements the interface by extending this class.
</p>
3493 <h3 id=
"abstractnumericformfield"><code>AbstractNumericFormField
</code><a class=
"headerlink" href=
"#abstractnumericformfield" title=
"Permanent link">#
</a></h3>
3494 <p><code>AbstractNumericFormField
</code> is the abstract implementation of a form field handling a single numeric value.
3495 The class implements
<code>IAttributeFormField
</code>,
<code>IAutoCompleteFormField
</code>,
<code>ICssClassFormField
</code>,
<code>IImmutableFormField
</code>,
<code>IInputModeFormField
</code>,
<code>IMaximumFormField
</code>,
<code>IMinimumFormField
</code>,
<code>INullableFormField
</code>,
<code>IPlaceholderFormField
</code> and
<code>ISuffixedFormField
</code>.
3496 If the property
<code>$integerValues
</code> is
<code>true
</code>, the form field works with integer values, otherwise it works with floating point numbers.
3497 The methods
<code>step($step = null)
</code> and
<code>getStep()
</code> can be used to set and get the step attribute of the
<code>input
</code> element.
3498 The default step for form fields with integer values is
<code>1</code>.
3499 Otherwise, the default step is
<code>any
</code>.
</p>
3500 <h3 id=
"abstractformfielddecorator"><code>AbstractFormFieldDecorator
</code><a class=
"headerlink" href=
"#abstractformfielddecorator" title=
"Permanent link">#
</a></h3>
3501 <div class=
"admonition info">
3502 <p class=
"admonition-title">Only available since version
5.4.5.
</p>
3504 <p><code>AbstractFormFieldDecorator
</code> is a default implementation of a decorator for form fields that forwards calls to all methods defined in
<code>IFormField
</code> to the respective method of the decorated object.
3505 The class implements
<code>IFormfield
</code>.
3506 If the implementation of a more specific interface is required then the remaining methods must be implemented in the concrete decorator derived from
<code>AbstractFormFieldDecorator
</code> and the type of the
<code>$field
</code> property must be narrowed appropriately.
</p>
3507 <h2 id=
"general-form-fields">General Form Fields
<a class=
"headerlink" href=
"#general-form-fields" title=
"Permanent link">#
</a></h2>
3508 <p>The following form fields are general reusable fields without any underlying context.
</p>
3509 <h3 id=
"booleanformfield"><code>BooleanFormField
</code><a class=
"headerlink" href=
"#booleanformfield" title=
"Permanent link">#
</a></h3>
3510 <p><code>BooleanFormField
</code> is used for boolean (
<code>0</code> or
<code>1</code>,
<code>yes
</code> or
<code>no
</code>) values.
3511 Objects of this class require a label.
3512 The return value of
<code>getSaveValue()
</code> is the integer representation of the boolean value, i.e.
<code>0</code> or
<code>1</code>.
3513 The class implements
<code>IAttributeFormField
</code>,
<code>IAutoFocusFormField
</code>,
<code>ICssClassFormField
</code>, and
<code>IImmutableFormField
</code>.
</p>
3514 <h3 id=
"checkboxformfield"><code>CheckboxFormField
</code><a class=
"headerlink" href=
"#checkboxformfield" title=
"Permanent link">#
</a></h3>
3515 <div class=
"admonition info">
3516 <p class=
"admonition-title">Only available since version
5.3.2.
</p>
3518 <p><code>CheckboxFormField
</code> extends
<code>BooleanFormField
</code> and offers a simple HTML checkbox.
</p>
3519 <h3 id=
"classnameformfield"><code>ClassNameFormField
</code><a class=
"headerlink" href=
"#classnameformfield" title=
"Permanent link">#
</a></h3>
3520 <p><code>ClassNameFormField
</code> is a
<a href=
"#textformfield">text form field
</a> that supports additional settings, specific to entering a PHP class name:
</p>
3522 <li><code>classExists($classExists = true)
</code> and
<code>getClassExists()
</code> can be used to ensure that the entered class currently exists in the installation.
3523 By default, the existance of the entered class is required.
</li>
3524 <li><code>implementedInterface($interface)
</code> and
<code>getImplementedInterface()
</code> can be used to ensure that the entered class implements the specified interface.
3525 By default, no interface is required.
</li>
3526 <li><code>parentClass($parentClass)
</code> and
<code>getParentClass()
</code> can be used to ensure that the entered class extends the specified class.
3527 By default, no parent class is required.
</li>
3528 <li><code>instantiable($instantiable = true)
</code> and
<code>isInstantiable()
</code> can be used to ensure that the entered class is instantiable.
3529 By default, entered classes have to instantiable.
</li>
3531 <p>Additionally, the default id of a
<code>ClassNameFormField
</code> object is
<code>className
</code>, the default label is
<code>wcf.form.field.className
</code>, and if either an interface or a parent class is required, a default description is set if no description has already been set (
<code>wcf.form.field.className.description.interface
</code> and
<code>wcf.form.field.className.description.parentClass
</code>, respectively).
</p>
3532 <h3 id=
"dateformfield"><code>DateFormField
</code><a class=
"headerlink" href=
"#dateformfield" title=
"Permanent link">#
</a></h3>
3533 <p><code>DateFormField
</code> is a form field to enter a date (and optionally a time).
3534 The class implements
<code>IAttributeFormField
</code>,
<code>IAutoFocusFormField
</code>,
<code>ICssClassFormField
</code>,
<code>IImmutableFormField
</code>, and
<code>INullableFormField
</code>.
3535 The following methods are specific to this form field class:
</p>
3537 <li><code>earliestDate($earliestDate)
</code> and
<code>getEarliestDate()
</code> can be used to get and set the earliest selectable/valid date and
<code>latestDate($latestDate)
</code> and
<code>getLatestDate()
</code> can be used to get and set the latest selectable/valid date.
3538 The date passed to the setters must have the same format as set via
<code>saveValueFormat()
</code>.
3539 If a custom format is used, that format has to be set via
<code>saveValueFormat()
</code> before calling any of the setters.
</li>
3540 <li><code>saveValueFormat($saveValueFormat)
</code> and
<code>getSaveValueFormat()
</code> can be used to specify the date format of the value returned by
<code>getSaveValue()
</code>.
3541 By default,
<code>U
</code> is used as format.
3542 The
<a href=
"https://secure.php.net/manual/en/function.date.php">PHP manual
</a> provides an overview of supported formats.
</li>
3543 <li><code>supportTime($supportsTime = true)
</code> and
<code>supportsTime()
</code> can be used to toggle whether, in addition to a date, a time can also be specified.
3544 By default, specifying a time is disabled.
</li>
3546 <h3 id=
"descriptionformfield"><code>DescriptionFormField
</code><a class=
"headerlink" href=
"#descriptionformfield" title=
"Permanent link">#
</a></h3>
3547 <p><code>DescriptionFormField
</code> is a
<a href=
"#multilinetextformfield">multi-line text form field
</a> with
<code>description
</code> as the default id and
<code>wcf.global.description
</code> as the default label.
</p>
3548 <h3 id=
"emailformfield"><code>EmailFormField
</code><a class=
"headerlink" href=
"#emailformfield" title=
"Permanent link">#
</a></h3>
3549 <p><code>EmailFormField
</code> is a form field to enter an email address which is internally validated using
<code>UserUtil::isValidEmail()
</code>.
3550 The class implements
<code>IAttributeFormField
</code>,
<code>IAutoCompleteFormField
</code>,
<code>IAutoFocusFormField
</code>,
<code>ICssClassFormField
</code>,
<code>II18nFormField
</code>,
<code>IImmutableFormField
</code>,
<code>IInputModeFormField
</code>,
<code>IPatternFormField
</code>, and
<code>IPlaceholderFormField
</code>.
</p>
3551 <h3 id=
"floatformfield"><code>FloatFormField
</code><a class=
"headerlink" href=
"#floatformfield" title=
"Permanent link">#
</a></h3>
3552 <p><code>FloatFormField
</code> is an implementation of
<a href=
"#abstractnumericformfield">AbstractNumericFormField
</a> for floating point numbers.
</p>
3553 <h3 id=
"iconformfield"><code>IconFormField
</code><a class=
"headerlink" href=
"#iconformfield" title=
"Permanent link">#
</a></h3>
3554 <p><code>IconFormField
</code> is a form field to select a FontAwesome icon.
</p>
3555 <h3 id=
"integerformfield"><code>IntegerFormField
</code><a class=
"headerlink" href=
"#integerformfield" title=
"Permanent link">#
</a></h3>
3556 <p><code>IntegerFormField
</code> is an implementation of
<a href=
"#abstractnumericformfield">AbstractNumericFormField
</a> for integers.
</p>
3557 <h3 id=
"isdisabledformfield"><code>IsDisabledFormField
</code><a class=
"headerlink" href=
"#isdisabledformfield" title=
"Permanent link">#
</a></h3>
3558 <p><code>IsDisabledFormField
</code> is a
<a href=
"#booleanformfield">boolean form field
</a> with
<code>isDisabled
</code> as the default id.
</p>
3559 <h3 id=
"itemlistformfield"><code>ItemListFormField
</code><a class=
"headerlink" href=
"#itemlistformfield" title=
"Permanent link">#
</a></h3>
3560 <p><code>ItemListFormField
</code> is a form field in which multiple values can be entered and returned in different formats as save value.
3561 The class implements
<code>IAttributeFormField
</code>,
<code>IAutoFocusFormField
</code>,
<code>ICssClassFormField
</code>,
<code>IImmutableFormField
</code>, and
<code>IMultipleFormField
</code>.
3562 The
<code>saveValueType($saveValueType)
</code> and
<code>getSaveValueType()
</code> methods are specific to this form field class and determine the format of the save value.
3563 The following save value types are supported:
</p>
3565 <li><code>ItemListFormField::SAVE_VALUE_TYPE_ARRAY
</code> adds a custom data processor that writes the form field data directly in the parameters array and not in the data sub-array of the parameters array.
</li>
3566 <li><code>ItemListFormField::SAVE_VALUE_TYPE_CSV
</code> lets the value be returned as a string in which the values are concatenated by commas.
</li>
3567 <li><code>ItemListFormField::SAVE_VALUE_TYPE_NSV
</code> lets the value be returned as a string in which the values are concatenated by
<code>\n
</code>.
</li>
3568 <li><code>ItemListFormField::SAVE_VALUE_TYPE_SSV
</code> lets the value be returned as a string in which the values are concatenated by spaces.
</li>
3570 <p>By default,
<code>ItemListFormField::SAVE_VALUE_TYPE_CSV
</code> is used.
</p>
3571 <p>If
<code>ItemListFormField::SAVE_VALUE_TYPE_ARRAY
</code> is used as save value type,
<code>ItemListFormField
</code> objects register a
<a href=
"../validation_data/#customformfielddataprocessor">custom form field data processor
</a> to add the relevant array into the
<code>$parameters
</code> array directly using the object property as the array key.
</p>
3572 <h3 id=
"multilinetextformfield"><code>MultilineTextFormField
</code><a class=
"headerlink" href=
"#multilinetextformfield" title=
"Permanent link">#
</a></h3>
3573 <p><code>MultilineTextFormField
</code> is a
<a href=
"#textformfield">text form field
</a> that supports multiple rows of text.
3574 The methods
<code>rows($rows)
</code> and
<code>getRows()
</code> can be used to set and get the number of rows of the
<code>textarea
</code> elements.
3575 The default number of rows is
<code>10</code>.
3576 These methods do
<strong>not
</strong>, however, restrict the number of text rows that can be entered.
</p>
3577 <h3 id=
"multipleselectionformfield"><code>MultipleSelectionFormField
</code><a class=
"headerlink" href=
"#multipleselectionformfield" title=
"Permanent link">#
</a></h3>
3578 <p><code>MultipleSelectionFormField
</code> is a form fields that allows the selection of multiple options out of a predefined list of available options.
3579 The class implements
<code>IAttributeFormField
</code>,
<code>ICssClassFormField
</code>,
<code>IFilterableSelectionFormField
</code>,
<code>IImmutableFormField
</code>, and
<code>INullableFormField
</code>.
3580 If the field is nullable and no option is selected,
<code>null
</code> is returned as the save value.
</p>
3581 <h3 id=
"radiobuttonformfield"><code>RadioButtonFormField
</code><a class=
"headerlink" href=
"#radiobuttonformfield" title=
"Permanent link">#
</a></h3>
3582 <p><code>RadioButtonFormField
</code> is a form fields that allows the selection of a single option out of a predefined list of available options using radiobuttons.
3583 The class implements
<code>IAttributeFormField
</code>,
<code>ICssClassFormField
</code>,
<code>IImmutableFormField
</code>, and
<code>ISelectionFormField
</code>.
</p>
3584 <h3 id=
"ratingformfield"><code>RatingFormField
</code><a class=
"headerlink" href=
"#ratingformfield" title=
"Permanent link">#
</a></h3>
3585 <p><code>RatingFormField
</code> is a form field to set a rating for an object.
3586 The class implements
<code>IImmutableFormField
</code>,
<code>IMaximumFormField
</code>,
<code>IMinimumFormField
</code>, and
<code>INullableFormField
</code>.
3587 Form fields of this class have
<code>rating
</code> as their default id,
<code>wcf.form.field.rating
</code> as their default label,
<code>1</code> as their default minimum, and
<code>5</code> as their default maximum.
3588 For this field, the minimum and maximum refer to the minimum and maximum rating an object can get.
3589 When the field is shown, there will be
<code>maximum() - minimum() +
1</code> icons be shown with additional CSS classes that can be set and gotten via
<code>defaultCssClasses(array $cssClasses)
</code> and
<code>getDefaultCssClasses()
</code>.
3590 If a rating values is set, the first
<code>getValue()
</code> icons will instead use the classes that can be set and gotten via
<code>activeCssClasses(array $cssClasses)
</code> and
<code>getActiveCssClasses()
</code>.
3591 By default, the only default class is
<code>fa-star-o
</code> and the active classes are
<code>fa-star
</code> and
<code>orange
</code>.
</p>
3592 <h3 id=
"showorderformfield"><code>ShowOrderFormField
</code><a class=
"headerlink" href=
"#showorderformfield" title=
"Permanent link">#
</a></h3>
3593 <p><code>ShowOrderFormField
</code> is a
<a href=
"#singleselectionformfield">single selection form field
</a> for which the selected value determines the position at which an object is shown.
3594 The show order field provides a list of all siblings and the object will be positioned
<strong>after
</strong> the selected sibling.
3595 To insert objects at the very beginning, the
<code>options()
</code> automatically method prepends an additional option for that case so that only the existing siblings need to be passed.
3596 The default id of instances of this class is
<code>showOrder
</code> and their default label is
<code>wcf.form.field.showOrder
</code>.
</p>
3597 <div class=
"admonition info">
3598 <p class=
"admonition-title">It is important that the relevant object property is always kept updated. Whenever a new object is added or an existing object is edited or delete, the values of the other objects have to be adjusted to ensure consecutive numbering.
</p>
3600 <h3 id=
"singleselectionformfield"><code>SingleSelectionFormField
</code><a class=
"headerlink" href=
"#singleselectionformfield" title=
"Permanent link">#
</a></h3>
3601 <p><code>SingleSelectionFormField
</code> is a form fields that allows the selection of a single option out of a predefined list of available options.
3602 The class implements
<code>ICssClassFormField
</code>,
<code>IFilterableSelectionFormField
</code>,
<code>IImmutableFormField
</code>, and
<code>INullableFormField
</code>.
3603 If the field is nullable and the current form field value is considered
<code>empty
</code> by PHP,
<code>null
</code> is returned as the save value.
</p>
3604 <h3 id=
"sortorderformfield"><code>SortOrderFormField
</code><a class=
"headerlink" href=
"#sortorderformfield" title=
"Permanent link">#
</a></h3>
3605 <p><code>SingleSelectionFormField
</code> is a
<a href=
"#singleselectionformfield">single selection form field
</a> with default id
<code>sortOrder
</code>, default label
<code>wcf.global.showOrder
</code> and default options
<code>ASC: wcf.global.sortOrder.ascending
</code> and
<code>DESC: wcf.global.sortOrder.descending
</code>.
</p>
3606 <h3 id=
"textformfield"><code>TextFormField
</code><a class=
"headerlink" href=
"#textformfield" title=
"Permanent link">#
</a></h3>
3607 <p><code>TextFormField
</code> is a form field that allows entering a single line of text.
3608 The class implements
<code>IAttributeFormField
</code>,
<code>IAutoCompleteFormField
</code>,
<code>ICssClassFormField
</code>,
<code>IImmutableFormField
</code>,
<code>II18nFormField
</code>,
<code>IInputModeFormField
</code>,
<code>IMaximumLengthFormField
</code>,
<code>IMinimumLengthFormField
</code>,
<code>IPatternFormField
</code>, and
<code>IPlaceholderFormField
</code>.
</p>
3609 <h3 id=
"titleformfield"><code>TitleFormField
</code><a class=
"headerlink" href=
"#titleformfield" title=
"Permanent link">#
</a></h3>
3610 <p><code>TitleFormField
</code> is a
<a href=
"#textformfield">text form field
</a> with
<code>title
</code> as the default id and
<code>wcf.global.title
</code> as the default label.
</p>
3611 <h3 id=
"urlformfield"><code>UrlFormField
</code><a class=
"headerlink" href=
"#urlformfield" title=
"Permanent link">#
</a></h3>
3612 <p><code>UrlFormField
</code> is a
<a href=
"#textformfield">text form field
</a> whose values are checked via
<code>Url::is()
</code>.
</p>
3613 <h2 id=
"specific-fields">Specific Fields
<a class=
"headerlink" href=
"#specific-fields" title=
"Permanent link">#
</a></h2>
3614 <p>The following form fields are reusable fields that generally are bound to a certain API or
<code>DatabaseObject
</code> implementation.
</p>
3615 <h3 id=
"aclformfield"><code>AclFormField
</code><a class=
"headerlink" href=
"#aclformfield" title=
"Permanent link">#
</a></h3>
3616 <p><code>AclFormField
</code> is used for setting up acl values for specific objects.
3617 The class implements
<code>IObjectTypeFormField
</code> and requires an object type of the object type definition
<code>com.woltlab.wcf.acl
</code>.
3618 Additionally, the class provides the methods
<code>categoryName($categoryName)
</code> and
<code>getCategoryName()
</code> that allow setting a specific name or filter for the acl option categories whose acl options are shown.
3619 A category name of
<code>null
</code> signals that no category filter is used.
</p>
3620 <div class=
"admonition info">
3621 <p class=
"admonition-title">Since version
5.5, the category name also supports filtering using a wildcard like
<code>user.*
</code>, see
<a href=
"https://github.com/WoltLab/WCF/pull/4355">WoltLab/WCF#
4355</a>.
</p>
3623 <p><code>AclFormField
</code> objects register a
<a href=
"../validation_data/#customformfielddataprocessor">custom form field data processor
</a> to add the relevant ACL object type id into the
<code>$parameters
</code> array directly using
<code>{$objectProperty}_aclObjectTypeID
</code> as the array key.
3624 The relevant database object action method is expected, based on the given ACL object type id, to save the ACL option values appropriately.
</p>
3625 <h3 id=
"buttonformfield"><code>ButtonFormField
</code><a class=
"headerlink" href=
"#buttonformfield" title=
"Permanent link">#
</a></h3>
3626 <div class=
"admonition info">
3627 <p class=
"admonition-title">Only available since version
5.4.
</p>
3629 <p><code>ButtonFormField
</code> shows a submit button as part of the form.
3630 The class implements
<code>IAttributeFormField
</code> and
<code>ICssClassFormField
</code>.
</p>
3631 <p>Specifically for this form field, there is the
<code>IsNotClickedFormFieldDependency
</code> dependency with which certain parts of the form will only be processed if the relevent button has not clicked.
</p>
3632 <h3 id=
"captchaformfield"><code>CaptchaFormField
</code><a class=
"headerlink" href=
"#captchaformfield" title=
"Permanent link">#
</a></h3>
3633 <p><code>CaptchaFormField
</code> is used to add captcha protection to the form.
</p>
3634 <p>You must specify a captcha object type (
<code>com.woltlab.wcf.captcha
</code>) using the
<code>objectType()
</code> method.
</p>
3635 <h3 id=
"colorformfield"><code>ColorFormField
</code><a class=
"headerlink" href=
"#colorformfield" title=
"Permanent link">#
</a></h3>
3636 <div class=
"admonition info">
3637 <p class=
"admonition-title">Only available since version
5.5.
</p>
3639 <p><code>ColorFormField
</code> is used to specify RGBA colors using the
<code>rgba(r, g, b, a)
</code> format.
3640 The class implements
<code>IImmutableFormField
</code>.
</p>
3641 <h3 id=
"contentlanguageformfield"><code>ContentLanguageFormField
</code><a class=
"headerlink" href=
"#contentlanguageformfield" title=
"Permanent link">#
</a></h3>
3642 <p><code>ContentLanguageFormField
</code> is used to select the content language of an object.
3643 Fields of this class are only available if multilingualism is enabled and if there are content languages.
3644 The class implements
<code>IImmutableFormField
</code>.
</p>
3645 <h3 id=
"labelformfield"><code>LabelFormField
</code><a class=
"headerlink" href=
"#labelformfield" title=
"Permanent link">#
</a></h3>
3646 <p><code>LabelFormField
</code> is used to select a label from a specific label group.
3647 The class implements
<code>IObjectTypeFormNode
</code>.
</p>
3648 <p>The
<code>labelGroup(ViewableLabelGroup $labelGroup)
</code> and
<code>getLabelGroup()
</code> methods are specific to this form field class and can be used to set and get the label group whose labels can be selected.
3649 Additionally, there is the static method
<code>createFields($objectType, array $labelGroups, $objectProperty = 'labelIDs)
</code> that can be used to create all relevant label form fields for a given list of label groups.
3650 In most cases,
<code>LabelFormField::createFields()
</code> should be used.
</p>
3651 <h3 id=
"optionformfield"><code>OptionFormField
</code><a class=
"headerlink" href=
"#optionformfield" title=
"Permanent link">#
</a></h3>
3652 <p><code>OptionFormField
</code> is an
<a href=
"#itemlistformfield">item list form field
</a> to set a list of options.
3653 The class implements
<code>IPackagesFormField
</code> and only options of the set packages are considered available.
3654 The default label of instances of this class is
<code>wcf.form.field.option
</code> and their default id is
<code>options
</code>.
</p>
3655 <h3 id=
"simpleaclformfield"><code>SimpleAclFormField
</code><a class=
"headerlink" href=
"#simpleaclformfield" title=
"Permanent link">#
</a></h3>
3656 <p><code>SimpleAclFormField
</code> is used for setting up simple acl values (one
<code>yes
</code>/
<code>no
</code> option per user and user group) for specific objects.
</p>
3657 <p><code>SimpleAclFormField
</code> objects register a
<a href=
"../validation_data/#customformfielddataprocessor">custom form field data processor
</a> to add the relevant simple ACL data array into the
<code>$parameters
</code> array directly using the object property as the array key.
</p>
3658 <div class=
"admonition info">
3659 <p class=
"admonition-title">Since version
5.5, the field also supports inverted permissions, see
<a href=
"https://github.com/WoltLab/WCF/pull/4570">WoltLab/WCF#
4570</a>.
</p>
3661 <p>The
<code>SimpleAclFormField
</code> supports inverted permissions, allowing the administrator to grant access to all non-selected users and groups. If this behavior is desired, it needs to be enabled by calling
<code>supportInvertedPermissions
</code>. An
<code>invertPermissions
</code> key containing a boolean value with the users selection will be provided together with the ACL values when saving the field.
</p>
3662 <h3 id=
"singlemediaselectionformfield"><code>SingleMediaSelectionFormField
</code><a class=
"headerlink" href=
"#singlemediaselectionformfield" title=
"Permanent link">#
</a></h3>
3663 <p><code>SingleMediaSelectionFormField
</code> is used to select a specific media file.
3664 The class implements
<code>IImmutableFormField
</code>.
</p>
3665 <p>The following methods are specific to this form field class:
</p>
3667 <li><code>imageOnly($imageOnly = true)
</code> and
<code>isImageOnly()
</code> can be used to set and check if only images may be selected.
</li>
3668 <li><code>getMedia()
</code> returns the media file based on the current field value if a field is set.
</li>
3670 <h3 id=
"tagformfield"><code>TagFormField
</code><a class=
"headerlink" href=
"#tagformfield" title=
"Permanent link">#
</a></h3>
3671 <p><code>TagFormField
</code> is a form field to enter tags.
3672 The class implements
<code>IAttributeFormField
</code> and
<code>IObjectTypeFormNode
</code>.
3673 Arrays passed to
<code>TagFormField::values()
</code> can contain tag names as strings and
<code>Tag
</code> objects.
3674 The default label of instances of this class is
<code>wcf.tagging.tags
</code> and their default description is
<code>wcf.tagging.tags.description
</code>.
</p>
3675 <p><code>TagFormField
</code> objects register a
<a href=
"../validation_data/#customformfielddataprocessor">custom form field data processor
</a> to add the array with entered tag names into the
<code>$parameters
</code> array directly using the object property as the array key.
</p>
3676 <h3 id=
"uploadformfield"><code>UploadFormField
</code><a class=
"headerlink" href=
"#uploadformfield" title=
"Permanent link">#
</a></h3>
3677 <p><code>UploadFormField
</code> is a form field that allows uploading files by the user.
</p>
3678 <p><code>UploadFormField
</code> objects register a
<a href=
"../validation_data/#customformfielddataprocessor">custom form field data processor
</a> to add the array of
<code>wcf\system\file\upload\UploadFile\UploadFile
</code> into the
<code>$parameters
</code> array directly using the object property as the array key. Also it registers the removed files as an array of
<code>wcf\system\file\upload\UploadFile\UploadFile
</code> into the
<code>$parameters
</code> array directly using the object property with the suffix
<code>_removedFiles
</code> as the array key.
</p>
3679 <p>The field supports additional settings:
3680 -
<code>imageOnly($imageOnly = true)
</code> and
<code>isImageOnly()
</code> can be used to ensure that the uploaded files are only images.
3681 -
<code>allowSvgImage($allowSvgImages = true)
</code> and
<code>svgImageAllowed()
</code> can be used to allow SVG images, if the image only mode is enabled (otherwise, the method will throw an exception). By default, SVG images are not allowed.
</p>
3682 <h4 id=
"provide-value-from-database-object">Provide value from database object
<a class=
"headerlink" href=
"#provide-value-from-database-object" title=
"Permanent link">#
</a></h4>
3683 <p>To provide values from a database object, you should implement the method
<code>get{$objectProperty}UploadFileLocations()
</code> to your database object class. This method must return an array of strings with the locations of the files.
</p>
3684 <h4 id=
"process-files">Process files
<a class=
"headerlink" href=
"#process-files" title=
"Permanent link">#
</a></h4>
3685 <p>To process files in the database object action class, you must
<a href=
"https://secure.php.net/manual/en/function.rename.php"><code>rename
</code></a> the file to the final destination. You get the temporary location, by calling the method
<code>getLocation()
</code> on the given
<code>UploadFile
</code> objects. After that, you call
<code>setProcessed($location)
</code> with
<code>$location
</code> contains the new file location. This method sets the
<code>isProcessed
</code> flag to true and saves the new location. For updating files, it is relevant, whether a given file is already processed or not. For this case, the
<code>UploadFile
</code> object has an method
<code>isProcessed()
</code> which indicates, whether a file is already processed or new uploaded.
</p>
3686 <h3 id=
"userformfield"><code>UserFormField
</code><a class=
"headerlink" href=
"#userformfield" title=
"Permanent link">#
</a></h3>
3687 <p><code>UserFormField
</code> is a form field to enter existing users.
3688 The class implements
<code>IAutoCompleteFormField
</code>,
<code>IAutoFocusFormField
</code>,
<code>IImmutableFormField
</code>,
<code>IMultipleFormField
</code>, and
<code>INullableFormField
</code>.
3689 While the user is presented the names of the specified users in the user interface, the field returns the ids of the users as data.
3690 The relevant
<code>UserProfile
</code> objects can be accessed via the
<code>getUsers()
</code> method.
</p>
3691 <h3 id=
"userpasswordfield"><code>UserPasswordField
</code><a class=
"headerlink" href=
"#userpasswordfield" title=
"Permanent link">#
</a></h3>
3692 <div class=
"admonition info">
3693 <p class=
"admonition-title">Only available since version
5.4.
</p>
3695 <p><code>UserPasswordField
</code> is a form field for users' to enter their current password.
3696 The class implements
<code>IAttributeFormField
</code>,
<code>IAttributeFormField
</code>,
<code>IAutoCompleteFormField
</code>,
<code>IAutoFocusFormField
</code>, and
<code>IPlaceholderFormField
</code></p>
3697 <h3 id=
"usergroupoptionformfield"><code>UserGroupOptionFormField
</code><a class=
"headerlink" href=
"#usergroupoptionformfield" title=
"Permanent link">#
</a></h3>
3698 <p><code>UserGroupOptionFormField
</code> is an
<a href=
"#itemlistformfield">item list form field
</a> to set a list of user group options/permissions.
3699 The class implements
<code>IPackagesFormField
</code> and only user group options of the set packages are considered available.
3700 The default label of instances of this class is
<code>wcf.form.field.userGroupOption
</code> and their default id is
<code>permissions
</code>.
</p>
3701 <h3 id=
"usernameformfield"><code>UsernameFormField
</code><a class=
"headerlink" href=
"#usernameformfield" title=
"Permanent link">#
</a></h3>
3702 <p><code>UsernameFormField
</code> is used for entering one non-existing username.
3703 The class implements
<code>IAttributeFormField
</code>,
<code>IImmutableFormField
</code>,
<code>IMaximumLengthFormField
</code>,
<code>IMinimumLengthFormField
</code>,
<code>INullableFormField
</code>, and
<code>IPlaceholderFormField
</code>.
3704 As usernames have a system-wide restriction of a minimum length of
3 and a maximum length of
100 characters, these values are also used as the default value for the field’s minimum and maximum length.
</p>
3705 <h2 id=
"wysiwyg-form-container">Wysiwyg form container
<a class=
"headerlink" href=
"#wysiwyg-form-container" title=
"Permanent link">#
</a></h2>
3706 <p>To integrate a wysiwyg editor into a form, you have to create a
<code>WysiwygFormContainer
</code> object.
3707 This container takes care of creating all necessary form nodes listed below for a wysiwyg editor.
</p>
3708 <div class=
"admonition warning">
3709 <p class=
"admonition-title">When creating the container object, its id has to be the id of the form field that will manage the actual text.
</p>
3711 <p>The following methods are specific to this form container class:
</p>
3713 <li><code>addSettingsNode(IFormChildNode $settingsNode)
</code> and
<code>addSettingsNodes(array $settingsNodes)
</code> can be used to add nodes to the settings tab container.
</li>
3714 <li><code>attachmentData($objectType, $parentObjectID)
</code> can be used to set the data relevant for attachment support.
3715 By default, not attachment data is set, thus attachments are not supported.
</li>
3716 <li><code>getAttachmentField()
</code>,
<code>getPollContainer()
</code>,
<code>getSettingsContainer()
</code>,
<code>getSmiliesContainer()
</code>, and
<code>getWysiwygField()
</code> can be used to get the different components of the wysiwyg form container once the form has been built.
</li>
3717 <li><code>enablePreviewButton($enablePreviewButton)
</code> can be used to set whether the preview button for the message is shown or not.
3718 By default, the preview button is shown.
3719 This method is only relevant before the form is built.
3720 Afterwards, the preview button availability can not be changed.
3721 Only available since WoltLab Suite Core
5.3.
</li>
3722 <li><code>getObjectId()
</code> returns the id of the edited object or
<code>0</code> if no object is edited.
</li>
3723 <li><code>getPreselect()
</code>,
<code>preselect($preselect)
</code> can be used to set the value of the wysiwyg tab menu's
<code>data-preselect
</code> attribute used to determine which tab is preselected.
3724 By default, the preselect is
<code>'true'
</code> which is used to pre-select the first tab.
</li>
3725 <li><code>messageObjectType($messageObjectType)
</code> can be used to set the message object type.
</li>
3726 <li><code>pollObjectType($pollObjectType)
</code> can be used to set the poll object type.
3727 By default, no poll object type is set, thus the poll form field container is not available.
</li>
3728 <li><code>supportMentions($supportMentions)
</code> can be used to set if mentions are supported.
3729 By default, mentions are not supported.
3730 This method is only relevant before the form is built.
3731 Afterwards, mention support can only be changed via the wysiwyg form field.
</li>
3732 <li><code>supportSmilies($supportSmilies)
</code> can be used to set if smilies are supported.
3733 By default, smilies are supported.
3734 This method is only relevant before the form is built.
3735 Afterwards, smiley availability can only be changed via changing the availability of the smilies form container.
</li>
3737 <h3 id=
"wysiwygattachmentformfield"><code>WysiwygAttachmentFormField
</code><a class=
"headerlink" href=
"#wysiwygattachmentformfield" title=
"Permanent link">#
</a></h3>
3738 <p><code>WysiwygAttachmentFormField
</code> provides attachment support for a wysiwyg editor via a tab in the menu below the editor.
3739 This class should not be used directly but only via
<code>WysiwygFormContainer
</code>.
3740 The methods
<code>attachmentHandler(AttachmentHandler $attachmentHandler)
</code> and
<code>getAttachmentHandler()
</code> can be used to set and get the
<code>AttachmentHandler
</code> object that is used for uploaded attachments.
</p>
3741 <h3 id=
"wysiwygpollformcontainer"><code>WysiwygPollFormContainer
</code><a class=
"headerlink" href=
"#wysiwygpollformcontainer" title=
"Permanent link">#
</a></h3>
3742 <p><code>WysiwygPollFormContainer
</code> provides poll support for a wysiwyg editor via a tab in the menu below the editor.
3743 This class should not be used directly but only via
<code>WysiwygFormContainer
</code>.
3744 <code>WysiwygPollFormContainer
</code> contains all form fields that are required to create polls and requires edited objects to implement
<code>IPollContainer
</code>.
</p>
3745 <p>The following methods are specific to this form container class:
</p>
3747 <li><code>getEndTimeField()
</code> returns the form field to set the end time of the poll once the form has been built.
</li>
3748 <li><code>getIsChangeableField()
</code> returns the form field to set if poll votes can be changed once the form has been built.
</li>
3749 <li><code>getIsPublicField()
</code> returns the form field to set if poll results are public once the form has been built.
</li>
3750 <li><code>getMaxVotesField()
</code> returns the form field to set the maximum number of votes once the form has been built.
</li>
3751 <li><code>getOptionsField()
</code> returns the form field to set the poll options once the form has been built.
</li>
3752 <li><code>getQuestionField()
</code> returns the form field to set the poll question once the form has been built.
</li>
3753 <li><code>getResultsRequireVoteField()
</code> returns the form field to set if viewing the poll results requires voting once the form has been built.
</li>
3754 <li><code>getSortByVotesField()
</code> returns the form field to set if the results are sorted by votes once the form has been built.
</li>
3756 <h3 id=
"wysiwygsmileyformcontainer"><code>WysiwygSmileyFormContainer
</code><a class=
"headerlink" href=
"#wysiwygsmileyformcontainer" title=
"Permanent link">#
</a></h3>
3757 <p><code>WysiwygSmileyFormContainer
</code> provides smiley support for a wysiwyg editor via a tab in the menu below the editor.
3758 This class should not be used directly but only via
<code>WysiwygFormContainer
</code>.
3759 <code>WysiwygSmileyFormContainer
</code> creates a sub-tab for each smiley category.
</p>
3760 <h4 id=
"wysiwygsmileyformnode"><code>WysiwygSmileyFormNode
</code><a class=
"headerlink" href=
"#wysiwygsmileyformnode" title=
"Permanent link">#
</a></h4>
3761 <p><code>WysiwygSmileyFormNode
</code> is contains the smilies of a specific category.
3762 This class should not be used directly but only via
<code>WysiwygSmileyFormContainer
</code>.
</p>
3763 <h3 id=
"example">Example
<a class=
"headerlink" href=
"#example" title=
"Permanent link">#
</a></h3>
3764 <p>The following code creates a WYSIWYG editor component for a
<code>message
</code> object property.
3765 As smilies are supported by default and an attachment object type is given, the tab menu below the editor has two tabs: “Smilies” and “Attachments”.
3766 Additionally, mentions and quotes are supported.
</p>
3767 <div class=
"highlight"><table class=
"highlighttable"><tr><td class=
"linenos"><div class=
"linenodiv"><pre><span></span><span class=
"normal">1</span>
3768 <span class=
"normal">2</span>
3769 <span class=
"normal">3</span>
3770 <span class=
"normal">4</span>
3771 <span class=
"normal">5</span>
3772 <span class=
"normal">6</span></pre></div></td><td class=
"code"><div><pre><span></span><code><span class=
"nx">WysiwygFormContainer
</span><span class=
"o">::
</span><span class=
"na">create
</span><span class=
"p">(
</span><span class=
"s1">'message
'</span><span class=
"p">)
</span>
3773 <span class=
"o">-
></span><span class=
"na">label
</span><span class=
"p">(
</span><span class=
"s1">'foo.bar.message
'</span><span class=
"p">)
</span>
3774 <span class=
"o">-
></span><span class=
"na">messageObjectType
</span><span class=
"p">(
</span><span class=
"s1">'com.example.foo.bar
'</span><span class=
"p">)
</span>
3775 <span class=
"o">-
></span><span class=
"na">attachmentData
</span><span class=
"p">(
</span><span class=
"s1">'com.example.foo.bar
'</span><span class=
"p">)
</span>
3776 <span class=
"o">-
></span><span class=
"na">supportMentions
</span><span class=
"p">()
</span>
3777 <span class=
"o">-
></span><span class=
"na">supportQuotes
</span><span class=
"p">()
</span>
3778 </code></pre></div></td></tr></table></div>
3779 <h3 id=
"wysiwygformfield"><code>WysiwygFormField
</code><a class=
"headerlink" href=
"#wysiwygformfield" title=
"Permanent link">#
</a></h3>
3780 <p><code>WysiwygFormField
</code> is used for wysiwyg editor form fields.
3781 This class should, in general, not be used directly but only via
<code>WysiwygFormContainer
</code>.
3782 The class implements
<code>IAttributeFormField
</code>,
<code>IMaximumLengthFormField
</code>,
<code>IMinimumLengthFormField
</code>, and
<code>IObjectTypeFormNode
</code> and requires an object type of the object type definition
<code>com.woltlab.wcf.message
</code>.
3783 The following methods are specific to this form field class:
</p>
3785 <li><code>autosaveId($autosaveId)
</code> and
<code>getAutosaveId()
</code> can be used enable automatically saving the current editor contents in the browser using the given id.
3786 An empty string signals that autosaving is disabled.
</li>
3787 <li><code>lastEditTime($lastEditTime)
</code> and
<code>getLastEditTime()
</code> can be used to set the last time the contents have been edited and saved so that the JavaScript can determine if the contents stored in the browser are older or newer.
3788 <code>0</code> signals that no last edit time has been set.
</li>
3790 <p><code>supportAttachments($supportAttachments)
</code> and
<code>supportsAttachments()
</code> can be used to set and check if the form field supports attachments.
</p>
3791 <div class=
"admonition warning">
3792 <p class=
"admonition-title">It is not sufficient to simply signal attachment support via these methods for attachments to work. These methods are relevant internally to signal the Javascript code that the editor supports attachments. Actual attachment support is provided by
<code>WysiwygAttachmentFormField
</code>.
</p>
3796 <p><code>supportMentions($supportMentions)
</code> and
<code>supportsMentions()
</code> can be used to set and check if the form field supports mentions of other users.
</p>
3799 <p><code>WysiwygFormField
</code> objects register a
<a href=
"../validation_data/#customformfielddataprocessor">custom form field data processor
</a> to add the relevant simple ACL data array into the
<code>$parameters
</code> array directly using the object property as the array key.
</p>
3800 <h3 id=
"twysiwygformnode"><code>TWysiwygFormNode
</code><a class=
"headerlink" href=
"#twysiwygformnode" title=
"Permanent link">#
</a></h3>
3801 <p>All form nodes that need to know the id of the
<code>WysiwygFormField
</code> field should use
<code>TWysiwygFormNode
</code>.
3802 This trait provides
<code>getWysiwygId()
</code> and
<code>wysiwygId($wysiwygId)
</code> to get and set the relevant wysiwyg editor id.
</p>
3803 <h2 id=
"application-specific-form-fields">Application-Specific Form Fields
<a class=
"headerlink" href=
"#application-specific-form-fields" title=
"Permanent link">#
</a></h2>
3804 <h3 id=
"woltlab-suite-forum">WoltLab Suite Forum
<a class=
"headerlink" href=
"#woltlab-suite-forum" title=
"Permanent link">#
</a></h3>
3805 <h4 id=
"multipleboardselectionformfield"><code>MultipleBoardSelectionFormField
</code><a class=
"headerlink" href=
"#multipleboardselectionformfield" title=
"Permanent link">#
</a></h4>
3806 <div class=
"admonition info">
3807 <p class=
"admonition-title">Only available since version
5.5.
</p>
3809 <p><code>MultipleBoardSelectionFormField
</code> is used to select multiple forums.
3810 The class implements
<code>IAttributeFormField
</code>,
<code>ICssClassFormField
</code>, and
<code>IImmutableFormField
</code>.
</p>
3811 <p>The field supports additional settings:
</p>
3813 <li><code>boardNodeList(BoardNodeList $boardNodeList): self
</code> and
<code>getBoardNodeList(): BoardNodeList
</code> are used to set and get the list of board nodes used to render the board selection.
3814 <code>boardNodeList(BoardNodeList $boardNodeList): self
</code> will automatically call
<code>readNodeTree()
</code> on the given board node list.
</li>
3815 <li><code>categoriesSelectable(bool $categoriesSelectable = true): self
</code> and
<code>areCategoriesSelectable(): bool
</code> are used to set and check if the categories in the board node list are selectable.
3816 By default, categories are selectable.
3817 This option is useful if only actual boards, in which threads can be posted, should be selectable but the categories must still be shown so that the overall forum structure is still properly shown.
</li>
3818 <li><code>supportExternalLinks(bool $supportExternalLinks): self
</code> and
<code>supportsExternalLinks(): bool
</code> are used to set and check if external links will be shown in the selection list.
3819 By default, external links are shown.
3820 Like in the example given before, in cases where only actual boards, in which threads can be posted, are relevant, this option allows to exclude external links.
</li>
3822 <h2 id=
"single-use-form-fields">Single-Use Form Fields
<a class=
"headerlink" href=
"#single-use-form-fields" title=
"Permanent link">#
</a></h2>
3823 <p>The following form fields are specific for certain forms and hardly reusable in other contexts.
</p>
3824 <h3 id=
"bbcodeattributesformfield"><code>BBCodeAttributesFormField
</code><a class=
"headerlink" href=
"#bbcodeattributesformfield" title=
"Permanent link">#
</a></h3>
3825 <p><code>DevtoolsProjectExcludedPackagesFormField
</code> is a form field for setting the attributes of a BBCode.
</p>
3826 <h3 id=
"devtoolsprojectexcludedpackagesformfield"><code>DevtoolsProjectExcludedPackagesFormField
</code><a class=
"headerlink" href=
"#devtoolsprojectexcludedpackagesformfield" title=
"Permanent link">#
</a></h3>
3827 <p><code>DevtoolsProjectExcludedPackagesFormField
</code> is a form field for setting the excluded packages of a devtools project.
</p>
3828 <h3 id=
"devtoolsprojectinstructionsformfield"><code>DevtoolsProjectInstructionsFormField
</code><a class=
"headerlink" href=
"#devtoolsprojectinstructionsformfield" title=
"Permanent link">#
</a></h3>
3829 <p><code>DevtoolsProjectExcludedPackagesFormField
</code> is a form field for setting the installation and update instructions of a devtools project.
</p>
3830 <h3 id=
"devtoolsprojectoptionalpackagesformfield"><code>DevtoolsProjectOptionalPackagesFormField
</code><a class=
"headerlink" href=
"#devtoolsprojectoptionalpackagesformfield" title=
"Permanent link">#
</a></h3>
3831 <p><code>DevtoolsProjectExcludedPackagesFormField
</code> is a form field for setting the optional packages of a devtools project.
</p>
3832 <h3 id=
"devtoolsprojectrequiredpackagesformfield"><code>DevtoolsProjectRequiredPackagesFormField
</code><a class=
"headerlink" href=
"#devtoolsprojectrequiredpackagesformfield" title=
"Permanent link">#
</a></h3>
3833 <p><code>DevtoolsProjectExcludedPackagesFormField
</code> is a form field for setting the required packages of a devtools project.
</p>
3836 <div class=
"md-source-file">
3853 <footer class=
"md-footer">
3856 <nav class=
"md-footer__inner md-grid" aria-label=
"Footer" >
3859 <a href=
"../structure/" class=
"md-footer__link md-footer__link--prev" aria-label=
"Previous: Structure" rel=
"prev">
3860 <div class=
"md-footer__button md-icon">
3861 <svg xmlns=
"http://www.w3.org/2000/svg" viewBox=
"0 0 24 24"><path d=
"M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
3863 <div class=
"md-footer__title">
3864 <div class=
"md-ellipsis">
3865 <span class=
"md-footer__direction">
3875 <a href=
"../validation_data/" class=
"md-footer__link md-footer__link--next" aria-label=
"Next: Validation and Data" rel=
"next">
3876 <div class=
"md-footer__title">
3877 <div class=
"md-ellipsis">
3878 <span class=
"md-footer__direction">
3884 <div class=
"md-footer__button md-icon">
3885 <svg xmlns=
"http://www.w3.org/2000/svg" viewBox=
"0 0 24 24"><path d=
"M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4Z"/></svg>
3891 <div class=
"md-footer-meta md-typeset">
3892 <div class=
"md-footer-meta__inner md-grid">
3893 <div class=
"md-copyright">
3895 <div class=
"md-copyright__highlight">
3896 Copyright ©
2020 WoltLab GmbH
3901 <a href=
"https://squidfunk.github.io/mkdocs-material/" target=
"_blank" rel=
"noopener">
3907 <div class=
"md-copyright">
3908 <a href=
"https://www.woltlab.com/legal-notice/">Legal Notice
</a>
3909 <a href=
"https://www.woltlab.com/privacy-policy/">Privacy Policy
</a>
3917 <div class=
"md-dialog" data-md-component=
"dialog">
3918 <div class=
"md-dialog__inner md-typeset"></div>
3920 <script id=
"__config" type=
"application/json">{
"base":
"../../../..",
"features": [
"navigation.tracking"],
"search":
"../../../../assets/javascripts/workers/search.b97dbffb.min.js",
"translations": {
"clipboard.copied":
"Copied to clipboard",
"clipboard.copy":
"Copy to clipboard",
"search.config.lang":
"en",
"search.config.pipeline":
"trimmer, stopWordFilter",
"search.config.separator":
"[\\s\\-]+",
"search.placeholder":
"Search",
"search.result.more.one":
"1 more on this page",
"search.result.more.other":
"# more on this page",
"search.result.none":
"No matching documents",
"search.result.one":
"1 matching document",
"search.result.other":
"# matching documents",
"search.result.placeholder":
"Type to start searching",
"search.result.term.missing":
"Missing",
"select.version.title":
"Select version"},
"version": {
"provider":
"mike"}}
</script>
3923 <script src=
"../../../../assets/javascripts/bundle.6c7ad80a.min.js"></script>