admin-on-rest in create form - How to populate the list in dropdown based on another input value - admin-on-rest

I am using admin-on-rest in my project. I am facing one scenario where I could not find solution. Could someone please help me in how to populate the list in dropdown based on another input value in create form. (Example: populate 'State' list based on 'Country' change like this).

This can be achieved using aor-dependent-input.
You can find an example in this codesandbox: https://codesandbox.io/s/5xwv91v4n4
Look for the PostCreate component which has category and subcategory inputs.

Related

Magento 2 dynamic UI form

Based on the type(value) I want to render the different fields in the same form. And also I want to make some field as readonly or disabled based on the value.
Refer the below screenshot for more understanding.
This form is based on type 1
This form is based on type 2
Type is a hidden field
This I can achieve by Widget Generic form but I want to implement in UI form, Because in my form I am also using magento default address form(UI).
Please help me if anybody knows.
Thanks in Advance!!!

Laravel 5 dynamic content from selected dropdown

Hello I'm new to laravel I was trying to find the solution but unsuccessful.
I manage to get the selected value using ajax but I cant show results in the same view that I selected from.
Let me explain what I want to achieve.
User select the value(id) from dropdown (populated from DB)
the value id need to be pass to controller get new array of a query result
return an array to the same view with show what was selected in dropdown
Any suggestion I will appreciate.
Thank you.
What I understood is , you want to populate one select box based on another select box value,
He are some best start tutorial for you,
http://www.9lessons.info/2010/08/dynamic-dependent-select-box-using.html
http://blog.chapagain.com.np/using-jquery-ajax-populate-selection-list/

Generate Table dynamic inside a form

I am having a little problem with the form system in Symfony 3.3.
I do want to generate a table of form-fields inside a form, depending on the data the user is selecting inside the form.
For example, I have one field with a daterange, that I want to use for the days beeing displayed on the x-axis. On the y-axis I want to display the data the user has selected from a multiselect, that has 1..3 different categories.
The goal is to generate a table after these fields are selected, that has an integer formtype for each cell, that can be changed by the user.
I am quite new to symfony and this really makes my head hurt.
My question is, what would be the easiest or at least most clever concept to achieve this goal in Symfony 3.3?
Have a look at Symfony Form Events: https://symfony.com/doc/current/form/events.html you might be looking for preSubmit or postSubmit.
You could also look at a data transformer: http://symfony.com/doc/current/form/data_transformers.html
Finally based on you wanting to render a table, you could probably do this just in twig templates: https://symfony.com/doc/current/reference/forms/twig_reference.html

How to display list of content items using Telerik Grid component

I'm begginer in the Orchard CMS.
I would like to create Content Type composed from different parts and fields which I know before. I want this content type to be enumerable ie I use content part List, I want to list it using telerik components.
For example my content type is Product and I specify its fields: Price, SKU apart from default: user(who created it) and creation time fields. Moreover the product contains also image gallery, ie image gallery content part.. I want the list of products to be shown using Telerik component Grid, including creation time and user name.
Is it better to create the whole module specifying all its fields(price,SKU) and its templates or is there any way to just take what has been already created in orchard as a content type and display it different way(using telerik)..
thanks for any advice ;)
Tomas
It appears this topic was moved and answered here:
http://orchard.codeplex.com/discussions/371276

MVC3 order form with multiple items

Im new to MVC3 so please excuse me. I have the following situation: I have a simple order form and each order can have multiple products attached to it. I want this all to be on one form, so the user will be presented with a form to fill out all their information as well as select a product from a drop down list. They can then click "Add Another" and another dropdown list will appear from which they can select another product. My question is how do I access these dynamically created dropdownlist values from the controllers action? I come from Webforms and so am still trying to wrap my head around things.
Any help much appreciated.
Thanks
here is an excellent post for making master detail in mvc.net
http://zahidadeel.blogspot.com/2011/05/master-detail-form-in-aspnet-mvc-3-i.html
also model binding to a list by phil haack is a must read

Resources