• 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: Turn field ids {Fullname:value} into PHP string

Turn field ids {Fullname:value} into PHP string 13 years 1 month ago #12913

  • ankki69
  • ankki69's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Hi,

I need to use PHP if else in my front View Submissions. How can I turn de RsForm placeholder like {Fullname:value} into $fullname?

I have tried the following but it is not working:
<?php
$fullname = {Fullname:value};
if ( $fullname == 3 ) {
	echo "Option1";
} else {
	echo "Option2";
}
?>
I have searchd the forum and looked in the documentation but I couldn't find the solution.

PHP is working, I have installed the sourcerer plugin for Joomla.

Thanks!
The administrator has disabled public write access.

Re:Turn field ids {Fullname:value} into PHP string 13 years 1 month ago #12942

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Hello,

You will have to load the value directly from the data base. I am afraid that there isn't an alternate solution.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
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!