Hello everyone,
I referred this link to display a para of text on a form. But the below code could only output [{test}] (Replace flower brackets with big brackets. I tried typing big brackets but this editor is considering it as a link and showing the link.). Can you please show me what's wrong I'm doing here?
In the below mentioned path I've two strings.
\www\moodle\lang\en\moodle.php
$string['test'] = 'This is just a line of text to test printing on a moodle form
TEST TEST TEST TEST';
$string['testlbl'] = 'Test';
In this path I'm using this text by the help of "get_string" function in this path "\www\moodle\user\editadvanced_form.php".
$mform->addElement ( 'static', 'testlbl', get_string ( 'testlbl' ), get_string('test', 'moodle') );
Thank you.