Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author xnau webdesign

    (@xnau)

    OK, there are two ways to do this. One ts to not make the field a read-only field, but use the “fields” or “groups” attribute in the [pdb_record] form to prevent that field from being included.

    If you want that field to show up, but be uneditable, you need to do that in a custom template for the [pdb_record] shortcode where you change the field’s “readonly” setting before displaying it.

    If you’re at all familiar with PHP it’s not hard.

    How to Create Custom Templates

    Thread Starter franpena

    (@franpena)

    Thanks Xnau. As usual, your hints are very clever.

    Only to complete the thread, I inform to all that the way I implemented Xnau’s advise was:

    1. To edit pdb_record_bootstrap.php (I prefer this template instead of pdb_record_default.php, but it is not important).

    2. To insert after the line <label><?php $this->field->print_label()?></label> the following code:

    <?php if ($this->field->name <> "proof") $this->field->readonly = 1; ?>

    Thanks,
    Fran

    Plugin Author xnau webdesign

    (@xnau)

    excellent, yes that’s perfect.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘"Read only" also avoid editing in [pdb_signup]’ is closed to new replies.