• Home
  • Support
  • Forum
  • Cobalt 8
  • what is the correct php sintax to display something if a field has not been submitted by a user?

Guest
17 Feb 2014 10:58

Hello,

I want to display an image placeholder ONLY IF the user has not submitted anything via a gallery field

currently I am using this code to call the field

fields_by_id[75])): ?> fields_by_id[75]->result; ?>

I understand I probably have to use the php else statement,

but I do not know enough php and with trial and error I am not able to get this working

thank you!

Last Modified: 02 Mar 2014


Sergey
Total posts: 13,748
19 Feb 2014 01:17
fields_by_id[75])): ?> fields_by_id[75]->result; ?>


Guest
19 Feb 2014 03:39

thank you Sergey, you are so helpful I could kiss you ahah :D

Powered by Cobalt