draganr
I'm new here

Rules - Empty fields

Jump to solution

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

0 Kudos
1 Solution

Accepted Solutions
draganr
I'm new here

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>

View solution in original post

0 Kudos
1 Reply
draganr
I'm new here

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 Kudos