Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9221689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:37:51+00:00 2026-06-18T03:37:51+00:00

Having this: echo $view[‘form’] -> row($form[codelist], array( //widget widgetArgs => array( attr => array(

  • 0

Having this:

echo $view['form'] -> row($form["codelist"], array(
    //widget
    "widgetArgs" => array(
        "attr" => array(
            'class' => 'input-xlarge tooltipRight', 
            'id' => "gift_codelist"
            ),
            "tooltip"=>"gift.tooltip.codelist",
            "translation_domain" =>"brand"


         ),
   "labelArgs" => array(
        "label_attr" => array(
            'class' => 'control-label', 
        )) ,"rowType"=>2
      )
  );

How do you add an initial value to that textbox?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T03:37:52+00:00Added an answer on June 18, 2026 at 3:37 am

    If you want to add an actual value to the field, you can use the value attribute:

    "attr" => array(
            'class' => 'input-xlarge tooltipRight', 
            'id' => "gift_codelist",
            'value' => "Your initial value"
            )
    

    But if you are using HTML5 and just want to give a hint to your users, you’d better use a placeholder:

    "attr" => array(
            'class' => 'input-xlarge tooltipRight', 
            'id' => "gift_codelist",
            'placeholder' => "Your initial value"
            )
    

    http://www.w3.org/html/wg/drafts/html/master/forms.html#the-placeholder-attribute

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hai I am having a form which contains a filetype like this <tr><td> <input
I'm trying to echo the XML content at this URL but I'm having difficulty.
I'm having some difficulty with this example: <img src=image1/<?php echo $file; ?>.jpg style=width:500px />
Having this XML view: <?xml version=1.0 encoding=utf-8?> <LinearLayout android:id=@+id/myScrollLayout android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical xmlns:android=http://schemas.android.com/apk/res/android> <ScrollView
I am having a problem using $html->link helper in my view. Consider this snippet...
I am having some problem in my login form like this I want to
This is my first approach to Zend.Having this index action: class IndexController extends Zend_Controller_Action
I have a class which contains a method to load a view. This works
I have a form for user to input some feedbacks, and this form has
I'm having this strange problem with codeigniters flashdata in my login form. When I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.