popuating country and state dropdown in cq form element dropdown(not dialog) - forms

I am using cq form and have a dropdowns dragged and dropped on the form for country and states.
How do i make states available on change of country.(I am populating country options from a item load path i.e. a node has all countries as its children).
I searched a lot all I am getting is how to do it in dialog box.but thats not what I am looking for.
I want to populate the /libs/foundation/components/form/dropdown component.
Any help is welcome.
I am using cq 5.6.1 (aem 6 adaptive forms has some way to do it)

Here's how you can do it
Add the FORM component to the page
Add Dropdown List component in between the above Form Start/End
Right-click on the dropdown component, select Edit. In the dialog, enter the Element Name(Country), Title, and in "Items Load Path" enter the node path from where data need to be filled in.
Add another Dropdown List component
Right-click on the dropdown component, select Edit. In the dialog, enter the Element Name (State), Title, and in "Items Load Path" enter the node path from where data need to be filled in. Save to come back to dialog.
In the dialog, choose Show/Hide, a dialog popups up. Choose Country "is equal to" some value "say US". This value should match the values in the above Country dropdown. Save and exit.
That's it.

Related

Sharepoint 2013 content type form edit

The problem is the folowing:
I have one list that shows up on 6 diferent forms using content types.
I have to show a name for each different form but have no idea how to do it.
I tryed googling but no luck there.
If I had 6 diferent forms I would solve it but i must use this because of the related workflows.
You have 6 content types in one list ? And you want to show some name depending on content type ?
If this is your case then you can add Content Editor Web Part or Script Editor Web Part to default forms (New, Edit, Display). This web part will contain javascript code.
Javascript code on form load will get content type id query string parameter from URL and render necessary name depending on this content type id.
Go to your library, and from the ribbon choose Library Settings
From the Settings page General Settings column choose the Advanced Settings Link
From the Advanced Settings page choose the Yes radio button for the Allow Management of Content Types option, and then click OK
From the Settings page, in the Content Type panel, choose Add from Existing Content Types
From the Add Content Types add the Content Types you want to use on your page and click OK
From the Settings page, in the Content Type panel, choose Change new button order and default content type
From the Change New Button Order page ensure all your content types have the Visible box checked (this makes the Content Types useable in the list) and then click OK
Now go back to your normal list view and from the ribbon choose New Document - you should see all your Content Type forms listed

Editable text box on MS Access 2010 - Behavior correct?

I have a continuous form which displays an overview/summary of my data. A user can select a row and click a button I created in the footer to open another form which has all the detail for that particular record and be able to edit it. This works fine. However I would also like for certain fields to be editable from the continuous form. I enabled two fields I would like users to edit directly (One is a combo box selection and the other a text box) When users click the combo box for any record it works fine and they can go back to the same record and select another value if they wish. All great but the text box behaves rather differently - The text box will allow the user to initially enter a value but after entry the box appears disabled and the only way to change the initial data entry is to go into the detail form which still works. Why can't users change the text box from the continuous form after an initial entry?
I found the issue!
There was a conditional filter on that particular field

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.

View details control on ax 2012 form

I would like to bring view details button in my form when right clicked on my form view details should be shown like in standard any form for example when we right click on item number field on the form we have view details option when clicked that opens the details form of that item.
I tried using the normal right click method but could not succeed, please help me how to bring the view details functionality in my custom form.
To have the "View details" standard context menu, the following must be true:
The foreign key (FK) must have a relation defined on the table of the key
The table pointed to by the FK must have a form
The form must have a display menu item
The menu item must have the same name as the table or the FormRef property must be set
The menu item must have security set up, and the user must have read access (or better)
Running the Best Practice check will usually spot the errors.
This blog entry explains it nicely.
You have to create Display Menu Item with the selected form.
Then you can set newly created menu item for the FormRef property of the Table.

Switching between forms in Subform panel in Microsoft access

I am new in Microsoft Access. What i want is to switch between forms in subform panel depending upon the user selects from drop down list. Attach file contains what i want
I google alot but didnt find any help. Thank you for your help.
Here is screen shot. but I am confused in finding control of subform.
Forms("frmMain").Form.subFormControl.SourceObject = "SubForm_2_A"
..should be all you need.
subFormControl is the name of the subform-container-control that contains Subform2.
frmMain is the name of the parent form, not labelled in your picture (actually, you might not have to put subform1 in a subform really, its content could be on the parent form).
EDIT:
The red frame marks a subform. Click on -1- to make sure the main form has the focus. Then click once on -2- and the control is selected, and its properties show up in the properties box on the right.
Note that you find the "source object" in the data page and the name of the control in the "other" page. Access makes the name (of the control) the same as the form, which is really not such a bright idea and rather confusing.