Skip to content
This repository was archived by the owner on May 13, 2020. It is now read-only.
This repository was archived by the owner on May 13, 2020. It is now read-only.

Add support for readonly fields? #17

@Scyntherei

Description

@Scyntherei

I have come across an issue where I need a field to contain a static value and be read only. Ideally the label would still appear and stick to the far right to inform users what the field is representing.

<ul class="form-list">
    <li>
        <label for="username" class="standard-form-label">Username</label>
        <input type="text" name="username" id="username" class="standard-form-field" placeholder="Username" value="<?php echo $username; ?>" readonly="readonly">
    </li>
</ul>

If there is an easy solution to this, it might be worth adding to the demo or documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions