• This topic has 2 replies, 2 voices, and was last updated 6 years ago by rafi.
Viewing 2 reply threads
  • Author
    Posts
    • #5708
      rafi
      Member

      I can make ajax client side validation work. I just need the “required” keyword to be inside the input tag of any field.

      Is there any way to put it there?

    • #5718
      Steve
      Keymaster

      @rafi– Welcome to the Piklist community!

      You can pass an HTML attribute to a field by including it in an attributes array:

      'attributes' => array {
        'required' => 'required'
      }
      
    • #5753
      rafi
      Member

      Lots of thanks

Viewing 2 reply threads
  • You must be logged in to reply to this topic.