Jump to content

Recommended Posts

Posted

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?

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...