Jump to content

Order Form: Change Placeholder Value


thynan

Recommended Posts

Hi!

 

I have a package with a textfield in the configurable options. The package is from a custom module of me. In the order-form (wizard) the textfield is shown correclty with the label. However, the placeholder-attribute of the textfield is the same as the label value. I want to change the placeholder to something different.

 

In my module, the field gets created like this:

// Create domain label
$domain = $fields->label(Language::_("Ispconfig.service_field.domain", true), "ispconfig_domain");
// Create domain field and attach to domain label
$domain->attach($fields->fieldText("ispconfig_domain", $this->Html->ifSet($vars->ispconfig_domain, $this->Html->ifSet($vars->ispconfig_domain)), array('id'=>"ispconfig_domain", 'placeholder' => 'yourdomain.at')));
// Set the label as a field
$fields->setField($domain);

So I thought the placeholder for the field should be "yourdomain.at". However, it's always the same as the label of the textfield. Does the placeholder-attribute i set get's overwritten somewere?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...