General developer forum

How to add link to another page using form elements

 
Picture of Amrata Ramchandani
How to add link to another page using form elements
 

I am developing a plugin and in need to add a link to a new page in order to input additional setting of quiz.I am planning to add a hyperlink.How do I do it in using form elements ?

 
Average of ratings: -
Renaat
Re: How to add link to another page using form elements
Group Core developersGroup Particularly helpful MoodlersGroup Plugin developers

 $mform->addElement('static', 'staticlink', 'link title', 'https://www.whatever.com');

 
Average of ratings: -
Picture of Amrata Ramchandani
Re: How to add link to another page using form elements
 

Thanks !

 
Average of ratings: -