Skip to content

Display Label on Form Validation #826

Description

I want to request the following resource.

In CodeIgniter 3, I used this to display the label name in form validation

$this->form_validation->set_rules('first_name','First Name','required');

In CodeIgniter 4, I am not able to do this.

$validation->setRule('first_name', 'required'); $validation->setRules(['first_name', 'required']);

These options do not work.

I do not want to display the field name.
I want to display the label name.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions