Symfony 2 form and tab - forms

I am new to Symfony framework. The issue i have is with form.
I managed to get data from the database and wrap it into one element and display it to the popup window. from the pop-up window only the selected items should be save on the tab which I was able to execute it using jquery.
I question is how to i save the elements from the html to the database?

Related

Reactjs : Multiple Forms in tabs with validation

Tab structure which will have same component in both the tabs
Component can add 2 fields at a time which are same whenever clicked on add
Form validations should happen for each newly added form on click
on the last form in last tab data from all the tabs in all the forms should be combined into single object
I want to know approach for this entire requirement.
P.S. Want to avoid usage of plugin
Tech Stack: React, Redux

sharepoint online, set edit item view as default instead new item view

I am working in a small SharePoint project to let school students pre-order the lunch online.
the main idea is the student can login to a school site, fill an order form.
I try use a list form to do it, just simply put a InfoPath form as web part on the home page.
When students open the site, he can fill the order form directly.
but the problem is the default view of this web part is always the new item form. so when a student already make the order, then login to site again,
how can I let him see his order and edit it instead a new order form.
another way may be use the form library, but i don't know how can i transfer the filed from the form to a list. because at last we still need a list instead a bunch of documents to get the summary of order.
Thank you for help.
Perhaps you can use a custom list and show that on the homepage?
A 'custom list' by default only has a title column but by adding more columns through the list settings you automatically add form fields on its new item form.
Since you are creating an order form you might want to hide the title column. Go to the settings of the list, then advanced settings, allow editing of content types. Then back in the list settings click the 'item' content type, then the title column then click the radio button for hidden.

How to add a single menu item in wordpress to my plugin

I am trying to create my first wordpress plugin and I want to add a new "menu item" in the wordpress default menu bar. So when I click that menu item, the html form need to be shown by my plugin.
comparing to Joomla, in joomla it has views in "components" so I can easily create a new menu item, and assign a view as I want. In wordpress how do I do that for a plugin?
Please help. Thanks
I recommend that for your form for the front end, make a shortcode that will render your form. Then people can create a page (which gets you your menu item) and put your form on the page, optionally with some text / images above or below the form. This is better than trying to insert a "page" into the menu and somehow getting it where your plugin's users want it to go :)
For the admin side, use the admin menu functions.

spring mvc remember selected option in drop down

I have a spring mvc form with a drop down and radio button.
I want to redisplay the form for confirmation and the drop down and radio buttons are not retaining the selections in the command object.
The drop down displays all the contents from the list but doesnt show the selected option from the command as 1st option.
Appreciate your help.
use the spring forms tags and set the path attribute to the name of the variable in which you are storing the radio and drop-down selections.
Make sure that you are using form:radiobutton and not form:input type="radio".

JFace wizard question

I am a developing a RCP application. It has a wizard. It has four wizard pages. I am intending to run a DB query when I click on "Next" button in my first page and load the results in second page. In the second page, user will select one of the query returned object. It will run another DB query and update the third page. I somehow managed to run the query in my first page "getNextPage" function. In the second page, I dont know how to load the results. There is a createControl() method and I thought of updating the second page by adding the code. But it will get called when the wizard is created and not when "Next" button is clicked. Can someone tell me whether this is possible. Thaks.
You need to override the setVisible() method of the second wizard page and populate the UI when visible==true