Posted August 5, 20186 yr Hi, I have field in pages, which upload the logo (image), however it's only for pro members, for other members it's now showing missing image icon, i am trying to use the if condition but it's not working out as below., can you please help {{if $value }} <img src='{$value}' width='100'/> {{else}} <!-- no --> {{endif}} Edited August 5, 20186 yr by iJeff
August 5, 20186 yr Community Expert Pages fields have individual permission. You should be able to just change those without the need for any custom code.
August 5, 20186 yr Author 3 minutes ago, opentype said: Pages fields have individual permission. You should be able to just change those without the need for any custom code. I have uploaded the screenshot to explain the problem. where logo is not uploaded it's showing missing image icon. Edited August 5, 20186 yr by iJeff
August 5, 20186 yr Community Expert Check for $formValue, not $value. The latter is a prepared output, which can contain stuff even for empty records.
August 5, 20186 yr Author 3 minutes ago, opentype said: Check for $formValue, not $value. The latter is a prepared output, which can contain stuff even for empty records. {{if $formValue }} <br><img src='{$value}' width='100'/> {{else}} {{endif}} it did the trick thanks. Edited August 5, 20186 yr by iJeff
Archived
This topic is now archived and is closed to further replies.