Zen Follower
- Join Date:
- Jul 2011
- Posts:
- 139
- Plugin Contributions:
- 0
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:
-
zen_draw_hidden_field - causes it not to be visible and updates the file to null
-
<label class="inputLabel" for="fax"><?php echo ENTRY_FAX_NUMBER; ?></label>
Please let me know if I can provide any other info that may be useful.
Regards