Hi,
I think I found a bug in SafeCracker. For some reason my “text input” custom fields are displaying twice…
This is what I have:
{custom_fields}
{if professor}
<label for="professor">Professor</label>
<input type="text" dir="{text_direction}" id="professor" name="professor" value="{field_data}" maxlength="{maxlength}" size="45" field_name="professor"></p>
{error:professor}
{/if}
{if file_upload}
label for="upload">Upload file:</label>
<input type="file" name="file_upload" id="file_upload" /></p>
{/if}
{if price}
<label for="price">Credit Cost</label>
<input type="text" dir="{text_direction}" id="price" name="price" value="{field_data}" maxlength="{maxlength}" size="45" field_name="price"></p>
{error:price}
{/if}
{if type}
<label for="type">Type</label>
<select id="type" name="type"
{options}<option value="{option_value}"{selected}>{option_name}</option>{/options}
</select>
{error:type}
{/if}
{if tag}
<label for="tags">Add Tags (Press enter to add a tag)</label>
{exp:tag:entry_widget all_open=“no” field_name="tag"}
{error:tag}
{/if}
{/custom_fields}
Inside the safecracker brackets of course. Everything else displays normally and in the the order selected in the control panel, except the two text input fields who duplicate for some odd reason at both field order locations(1st and 4th)... Like if they were linked together…