1

How can i new field in admin filed that contain mailto functionality

$fieldset->addField('email', 'link', array(
 'label' => Mage::helper('mumodule')->__('Email'),
 "target"=>"_blank",
 'mailto' => Mage::registry('mumodule')->getData('email'),
 'class' => 'required-entry',
 'required' => true,
 'name' => 'title',
 ));

using this way i cant add functionality.

is it possible to add new filed with mailto functionality?

asked Dec 21, 2013 at 9:55
2
  • What do you mean by "mailto functionality"? Commented Dec 21, 2013 at 15:57
  • means when click on email it use to mailto functionality of php function by the way i achieve answer,,thanks for comment Commented Dec 23, 2013 at 5:39

1 Answer 1

2

I believe what you're trying to do is create a mailto: link? In which case, the mailto: is part of the URL so it should be assigned in the href attribute:

$fieldset->addField('email', 'link', array(
 'label' => Mage::helper('mumodule')->__('Email'),
 'target' => '_blank',
 'href' => 'mailto:' . urlencode(Mage::registry('mumodule')->getData('email')),
 'class' => 'required-entry',
));
answered Dec 21, 2013 at 17:32
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.