Hello,
I have this form and I want every time I click on the button called Display Examples to have something displayed. It works but when i click on the button I loose the text generated by clicking on the 1st button that is called submit.

AnMK, I am not 100% clear on what you described or trying to do.
However, both of your buttons are submit buttons. That means that the page will redirect / refresh when either button is pushed so you will loose all the form values that were in the fields.

Rather use a javascript / jquery ajax call to display the example data, that way you can change the page content without the page refreshing.