How to make an account edit field read-only?
I'm working in the file
includeds/templates/YOUR_CUSTOM/templates/tpl_account_edit_default.php
I would like to make one of the fields read only. For Example:
<label class="inputLabel" for="fax"><?php echo ENTRY_FAX_NUMBER; ?></label>
<?php echo zen_draw_input_field('fax', $account->fields['customers_fax'], 'id="fax"') . (zen_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="alert">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
The problems I'm running into are:
1) zen_draw_hidden_field - causes it not to be visible and updates the file to null
2) <label class="inputLabel" for="fax"><?php echo ENTRY_FAX_NUMBER; ?></label>
<?php
echo $account->fields['customers_fax'];
?>
<br class="clearBoth" />
****this portion prevents field from being edited but once you click update, the field gets updated to null******
Please let me know if I can provide any other info that may be useful.
Regards
ZC 1.5.5
Add ons: - Column/Grid 1.3.8 - Dual pricing 1.7 - ImageHandler3