Show and hide a region based content in field of CMS
If I have a PowerCMS editable region on a page, can I show or hide it and other regions based on content entered? For Example, if the admin entered any word other than 'hide', I want it to show, if the admin does enter 'hide' I want it to disappear!
For example:
?php show if field_content is not equal to 'hide' { ?
<label for="coast">
<input type="checkbox" name="coast" id="coast"> <?php echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'inc-newsletter', 'coast'); ?>
</label>
?php } ?
Is this possible, and if so, how do I write the show if code? The recordset for it doesn't exist in the page due to PowerCMS not creating a recordset on the page the same way as DataAssist does?
Thanks.
Mat