Search the Community
Showing results for tags 'show this field only if'.
-
So I'm trying to create a little page builder of sorts for the project section of a porfolio site using a section repeater. The repeater includes fields for creating various section options to build out a page (1xfull-width screen image, image+txt, txt+image, 2ximages, triptych, etc.). I added a "section-type" radio field with layout options so I can use if statements in the code to change what markup will be created in the template. The screenshot below shows my repeater as it is now, but I'd like to use field dependencies to hide fields that are not required for the chosen layout type. The problem is - I just can't manage to get the "Show this field only if..." to work for partial text matches or OR statements. Taking the heading field as an example -- I only managed to hide the heading field with the following, and only for that one case: section_type%=heading_txt I tried using OR statements, but this didnt work either: section_type%=heading_txt|txt_heading Partial matching like this doesnt seem to work: section_type%=heading Am I missing something obvious? Would really appreciate any help. 1=single_image 2=two_images 3=three_images 4=txt_image 5=image_txt 6=heading_txt 7=txt_heading
-
- repeater
- field dependencies
-
(and 1 more)
Tagged with:
-
Hi, I have setup a new blank site with PW 2.6.0 stable version. I have created a template that has two fields, the Title and a PageTable. The PageTable 's template contains besides the title a single Pagefield with radios plus three other fields (text or integer) that should only be shown if the right option from the Pagefield is selected. This works fine and as expected! But the values entered into the fields do not get stored in the DB! If I strip the showOnlyIf condition, the values get stored as expected! With the SHowOnlyIf condition, the data isn't stored when opening the page from the PageTable-field in a modal window, nor when selecting the page from the pagetree and open it directly for editing. ?? Is this expected behave or do I miss something?