I want to show or hide the status option based on the current status in a safecracker form. This because i want that people can edit statuses form entries which are open or closed, but not the one who are denied.
So far no success because safecracker doesn't like the IF statement, i think i can do it with jquery but is there a good EE solution to get the result i want?
{exp:safecracker
channel="nieuws"
return="profiel/nieuws"
entry_id={segment_3}"
author_only="yes"
error_handling="inline"
status="open|closed|denied"}
{if status=="denied"}
Can't change the status
{if:else}
<label for="status">Status</label>
<select name="status" id="status">
<option value="open">Open</option>
<option value="closed">Closed</option>
</select>
{/if}