I have one modal in my form
You can pass a dynamic variable to a function and then in the function you can use that variable to 'manually' open the modal:
In your javascript you can access that like this:
function showModal(data)
{
//you can do anything with data, or pass more data to this function. i set this data to modal header for example
$("#myModal .modal-title").html(data)
$("#myModal").modal();
}