   if (matchedParamsInRoute) {
                $("form#" + $(form).attr('id') + " input[type=text]").each(function() {
                    var input = $(this);
                    var index;
                    for (index = 0; index < matchedParamsInRoute.length; ++index) {
                        try {
                            var tmp = matchedParamsInRoute[index].replace('{', '').replace('}', '');
                            if ($(this).attr('id') == tmp) {
                                var newFormAc