• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Checklis, {if} & operators

Checklis, {if} & operators 3 years 11 months ago #41258

  • sharky
  • sharky's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hello,

I created a Checklist field.

I would like, put a specific text if one or the other is checked.

I found this information www.rsjoomla.com/support/documentation/r...t-php-knowledge.html

But, I did not find the function of each opertors ?: <= , >=, <>, <, >, !=, =,==,===, <-, ->

I would like to use this function if I understand it correctly
{if {Checkbox:value}<-Item1}This text will be displayed if the Item1 value is selected, regardless of any other selections{/if}{if {Checkbox:value}<-Item2}This text will be displayed if the Item2 value is selected, regardless of any other selections{/if}{if {Checkbox:value}<-Item3}This text will be displayed if the Item3 value is selected, regardless of any other selections{/if}...


But, do I have to use the term "item1", caption or value ? (In my case the 2 are text)

Thank you for your answers
The administrator has disabled public write access.

Checklis, {if} & operators 3 years 11 months ago #41264

  • iceferret
  • iceferret's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 246
  • Thank you received: 64
Use the checkbox value. For example, I have a 'where did you hear about us' in a form with the following in the items field

Search Engine
Website or Social Media Link
Article in Magazine/Newspaper
Leaflet or Flyer
Word of Mouth

so item1 would be Search engine so you would write
{if {Checkbox:value}<-Search Engine}This text will be displayed if the Search Engine value is selected, regardless of any other selections{/if}

More on PHP operators here
If you can keep your head when all about you are losing theirs, then you obviously don't understand the situation!
The administrator has disabled public write access.
The following user(s) said Thank You: sharky

Checklis, {if} & operators 3 years 11 months ago #41266

  • sharky
  • sharky's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
I read about THE PHP operators

Regarding texting, are there options such as:
- starts with
- contains
- ended with
- ...

Thanks
The administrator has disabled public write access.

Checklis, {if} & operators 3 years 11 months ago #41267

  • iceferret
  • iceferret's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 246
  • Thank you received: 64
No, you would have to use some custom PHP code or javascript for that.
If you can keep your head when all about you are losing theirs, then you obviously don't understand the situation!
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!