understanding the sapui5 form layout - sapui5

I have picked a sample form xml view from demo kit and the link is :
Link to xml view
and the Change Form is like:
Here I don't understand why Address form container has 5 form elements and for Contact form container has 4 and then next elements starting from a new column (Mobile:)
Can any one brief how to understand the above query also to understand how to add any no of rows below form container?
Also How can I set Labels and Input fields for the same form side by side?
Any Help for this beginner is Appreciated!!

Here I don't understand why Address form container has 5 form elements and for Contact form container has 4 and then next elements starting from a new column (Mobile:)
As Address form container contains 5 form elements it is showing 5 form elements same applies to Contact form container which contains 4. You can add extra form elements to the Contact form container it will show 5 form elements.
Next elements starting from a new column because the form container is
responsive and it is written in different form containers(Address, Contact and Mobile).
How to add any no of rows below form container?
Kindly elaborate your question? if you are talking about the data binding, then there is an aggregation formContainers which helps to achieve it.
Also How can I set Labels and Input fields for the same form side by side?
Yes you can achieve it by giving empty label ie <f:FormElement label=""> and using <layoutData> for alignment for the elements. But the layout and CSS is predefined you need to modify it as per your requirement.

Related

Cannot update textbox on Access form

I have a form frm_Manage_Demand with two subforms: frm_Manage_Demand_Sub and frm_Manage_Demand_Bottom_Sub. I use the subforms to display the data from tbl_Manage_Demand. The reason I use two subforms is because there are two many fields to display on the screen in one form.
The need to allow the user to update the last two fields on the form plus an unbound textbox that is populated when the form is loaded.
I am unable to get the form to allow a user to enter data in the two fields plus the unbound textbox. All fields are set to Enabled = Yes and Locked = No. The main form has no record source. It attributes for Allow Edit, Allow Additions, Allow Deletions are all set to Yes.
The record source for the two subforms is tbl_Manage_Demand.
I created a new test form based on the tbl_Manage_Demand and I can update all fields just fine.
Any hints to solve my problem is sincerely appreciated.
I found that an unknown section of the code turned the control AllowEdits to No. So after the frm_Manage_Bottom_Sub form loaded I changed the control using Forms![frm_Manage_Demand]![frm_Manage_Demand_Bottom_Sub].Form.AllowEdits = True

Repeatable Form elements

I need to allow the users repeat some of the form fields(or form groups) in the survey forms. There should be a + or - button next to the field that if the user clicks on +, then a new field is created.
Example: https://www.rhyzz.com/repeatable-fields.html
I would be surprised to know if Qualtrics doesn't have this feature.
I google for this but no success.
You can't create new fields (choices, answers, variables, etc.) on the fly in Qualtrics. A field has to be defined in the survey for it be be saved in the response data.
You could write a JavaScript to show and hide fields to give the appearance of adding and removing fields, but you would have to define the maximum number of fields in the survey beforehand.

Render headline of first content element in Grid Container different

Is it possible to render the headline of the first content element within a Grid Elements container different in the fluid_styled_content template or via TypoScript?
There are several virtual fields within cObj->data that are created during the rendering process of Gridelements. So you might want to check for keys with the prefix parentgrid_
Additionally you can use
data = cObj:parentRecordNumber
to get the position of an element within the rendering order. Since Gridelements uses the sorting field of tt_content for the rendering of children and the parentRecordNumbers are handled correctly between different container columns, you should get the correct value - 1 - for the first element of each column there.

Drupal 8 - Repeatable Form Fields

I am looking to build a module in Drupal 8 after having used Joomla. The issue I'm having is that I can't seem to find a way to configure additional fields where required. Similar to this method in Joomla if possible so that I can add more of the same fields e.g multiple contact number boxes.
It is recommended to use Paragraph instead of field collection for Drupal 8 projects.
Check
Field Collection
It's drupal entity based module that allow you to create repeater fields.
You can create group of fields and embed them into existing content types.
example:
Your Collection:
Item 1:
title
body
image
Item 2:
title
body
image
Add another item

How to use a form text component multiple times through CRX DE in CQ5

I want to add a form text component multiple times in a page and give different id's to them in CQ5.
The default form text component doesn't provide option to specify an id, rather it generates one itself.
The id that is generated is the formId_elementName, where formId is the id of the form which is present in the form start component(defaults to "new_form") and the elementName is the value that is provided in the Element Name field of the form text component.
But, in case you would like to provide the authors, the ability to add their own id's to the form start component, then one possible way would be to override the default form text component.
Add an additional field to the dialog box of the form text component called id and use that value in the jsp as id for the input field. But be cautious when providing this functionality, as the authors may forget to update the id fields appropriately, there by resulting in many text fields having the same id.