
Jason
Staff
/ Moderator

Jan 10, 2012, 10:01 AM
Post #4 of 7
(432 views)
Shortcut
|
|
Re: [wbhood] Is it possible to set a record to pending?
[In reply to]
|
Can't Post
|
|
Hi, Oh, I see what you're trying to do, you need to just hide a single field. Not a problem. First, remove the "hidden" checkbox. Next, we'll create a new check box called "show_weather_announcement" (this will be the field name, you can give it any label you want). We can then use this field in the code to decide if we should show the contents of the weather announcement or not. Example (Note, In this example, I've assumed that the name of your wysiwyg field is weather_announcement, you may need to change this code to match what you have in your section)
<?php if ($record['show_weather_announcement']): ?> <?php echo $record['weather_announcement'];?> <?php endif ?> So in this code, weather_announcement will be output whenever the checkbox was checked. If it is unchecked, the field won't appear. Hope this helps --------------------------------------------------- Jason Sauchuk - Programmer interactivetools.com Hire me! Save time by getting our experts to help with your project. http://www.interactivetools.com/consulting/
|