Rules - Empty fields
Author: draganr
Publication Date: 11/12/2019 8:08
Hello all,
I need a rule that will empty these field types (on a radiobutton change):
- CMS_INPUT_TEXTAREA (st_video_embed)
- CMS_INPUT_LINK (st_video_link)
- FS_DATASET (st_video)
- FS_REFERENCE (st_image)
I created one for deleting the CMS_INPUT_TEXTAREA values:
<RULE>
<WITH>
<EQUAL>
<PROPERTY name="ENTRY" source="st_type"/>
<TEXT>image</TEXT>
</EQUAL>
</WITH>
<DO>
<PROPERTY name="EMPTY" source="st_video_embed"/>
</DO>
</RULE>
Is it possible to do the same with the other three input types?
Kind regards,
Dragan Rakita
-
Author: draganr - 11/13/2019 14:24
Solved.
<RULE>
<IF>
<EQUAL>
<PROPERTY name="ENTRY" source="st_type"/>
<TEXT>image</TEXT>
</EQUAL>
</IF>
<WITH>
<TRUE/>
</WITH>
<DO>
<PROPERTY name="empty" source="st_video_embed"/>
<PROPERTY name="empty" source="st_video"/>
<PROPERTY name="empty" source="st_video_link"/>
<PROPERTY name="empty" source="st_image_bg"/>
</DO>
</RULE>
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar