thynan Posted March 22, 2015 Report Posted March 22, 2015 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? Quote
Blesta Addons Posted March 23, 2015 Report Posted March 23, 2015 try this line $domain->attach($fields->fieldText("ispconfig_domain", $this->Html->ifSet($vars->ispconfig_domain), array('id'=>"ispconfig_domain", 'placeholder' => 'yourdomain.at'))); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.