drop down using liferay-ui:input-select tag - liferay-6

I want to customize the "meetups" portlet which is given by liferay.In that portlet now I have to do validation on fields(i.e mark few fields as mandatory) and create a field with drop down and that field has to be mapped to database.
can anyone please say how can i acheive this.

i have acheived the drop down functionality.Now i want to do client side validation using javascript.i am using document.getElementById('title) to retrieve the value.Sometimes it is working,sometimes it is not working.why is this happening

Related

Add validation to duplicate value in suitecrm

I want to add a custom validation to first name and last name field to avoid duplicate values i tried following this example link
but its not working for me. Is there any experts who knows other ways to do this ?

Getting current item ID in SharePoint Infopath form

Can we get the current item ID value while submitting the data in InfoPath form.
I need to use this and concatenate the ID with other field value. Tired "Max(#ID) + 1" function but it wouldn't solve the problem.
I know it can be done using calculated column or workflow.
It needs to be done using InfoPath form ? Is it possible ?
You already figured it out yourself. Im assuming you are trying to use the ID in naming it.
Create a blank field.
Then add that field to your submission naming concat.
Create a receive data connection (assuming you havent) to that library.
On the Submit rule add the query action to that library and a set field action to set that new blank field with max(ID) + 1. Make sure Submit action is last.
That should do it unless Im missing something as I have used this many times!

Chained combos in register form Joomla 2.5

Good morning.
I'm using joomla 2.5, I need add extra fields to my user form registration, I use user-profile plugin and I add 2 extra fields SQL type, at this point all is ok, but I need, that this fields work like chained combo i.e: when I select a Departamento (Department) I need the field Municipio (Municipalitie) just display the Municipalities that belonging to that department.
Thanks
Since you didn't specify in which language you wanted this done in. There's a jquery plugin you could use by Mike Tuupola which does just this. You might want to check it out.

Multiple values for one field

In GXT I want to create a form where a single field can have multiple values. so once one value is provided user should have option enter another value for the same field, similar to how we attach files in an e-mail.. what is the best way to do this?
One way to provide a button with plus symbol in the form. Clicking that button should add a field to the form dynamically. User can use that field to provide another value.
If you are talking about a single control, which can capture multiple values, can you try Multi-Select field like the one explained in this thread?

How to make a field "autocomplete"?

I can't figure out how to make a field autocomplete in ATK.
I guess it has something to do with the type "reference" but still not sure.
Suppose I'm looking for a client name in a "line" type field, then the autocomplete should list me all/topXX matching names.
Scenario 1:
Once I hit [Enter] I'd need all that row from DB loaded in a form fields so I can edit the record.
I guess this requires getting the client ID first then posting to an "edit" page then calling "loadData()" method for that ID and populate fields.
Scenario 2:
I'm assignig a job request to a client. First I find the client then I could store its ID in a hidden field to be posted then.
Any advice?
TIA
I would suggest you to go with 2 forms. First form with a single field, and when field is changed it automatically reloads second form including the parameter.
You will also need an autocomplete field. Autocomplete is somewhat buggy in 4.0, but it have been polished up in 4.1 by using a technique in http://jqueryui.com/demos/autocomplete/#combobox
For use with models and controllers and also dropdown, example is here:
http://codepad.agiletoolkit.org/reloadform
Alternative example:
http://demo.atk4.com/demo.html?t=22
Since 4.1, you can also use autocomplete fields instead of reference:
$form1->addField('autocomplete','user');