How to add custom link just after input field in add/edit pop up form?
e.g: Add more link onclick of which a new pop up grid window will open like below:-
Country Name: [Input Field Here] <Add More Link>
City Name : [Input Field Here] <Add More Link>
Hello,
You can connect afterShowForm event and put your link using jquery append.
Column name is set as id of input.
$grid["add_options"]["afterShowForm"] = 'function(formid) { jQuery("#country").append('my link'); }';
$g->set_options($grid);
Dear Abu,
I have added like that below:-
Below not working fine for <anchor> tag:-
—————————————-
$grid["add_options"]["afterShowForm"] = 'function(formid){jQuery("#url").after("<a href="#">Add</a>")}';
But its showing syntax error of [SyntaxError: illegal character]
Below is working fine for <span> tag:-
————————————–
$grid["add_options"]["afterShowForm"] = 'function(formid){jQuery("#url").after("<span>Add New</span>")}'