Forums

Home » Alloy UI » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Suresh Kumar
AUI form (Select Options)
October 10, 2012 2:53 AM
Answer

Suresh Kumar

Rank: Junior Member

Posts: 39

Join Date: May 9, 2012

Recent Posts

Hi,

I am using AUI form with various fields like Co. Name, mobile number, alternate mobile number, email along with the following circle in the select-options.

After filling up the form, whenever I am trying to refresh(f5) or reload (right click and reload) before submitting the form, except circle all are refreshing (getting clear).

Circle value is same which i have selected. I need to get "Select State" on refresh

<aui:select name="circle" label="circle">
<aui:option value="-1"> Select State </aui:option>
<aui:option value="AndhraPradesh"><liferay-ui:message key="andhra-pradesh"/></aui:option>
<aui:option value="Karnataka"><liferay-ui:message key="karnataka"/></aui:option>
<aui:option value="Kerala"><liferay-ui:message key="kerala"/></aui:option>
<aui:option value="BiharandJharkhand"><liferay-ui:message key="biharandjharkhand"/></aui:option>
<aui:option value="DelhiandNCR"><liferay-ui:message key="delhiandNCR"/></aui:option>
<aui:option value="aryana"><liferay-ui:message key="haryana"/></aui:option>
-

How do i need to do.

-- Suresh
Suresh Kumar
RE: AUI form (Select Options)
October 11, 2012 4:28 AM
Answer

Suresh Kumar

Rank: Junior Member

Posts: 39

Join Date: May 9, 2012

Recent Posts

Suresh Kumar:
Hi,

I am using AUI form with various fields like Co. Name, mobile number, alternate mobile number, email along with the following circle in the select-options.

After filling up the form, whenever I am trying to refresh(f5) or reload (right click and reload) before submitting the form, except circle all are refreshing (getting clear).

Circle value is same which i have selected. I need to get "Select State" on refresh

<aui:select name="circle" label="circle">
<aui:option value="-1"> Select State </aui:option>
<aui:option value="AndhraPradesh"><liferay-ui:message key="andhra-pradesh"/></aui:option>
<aui:option value="Karnataka"><liferay-ui:message key="karnataka"/></aui:option>
<aui:option value="Kerala"><liferay-ui:message key="kerala"/></aui:option>
<aui:option value="BiharandJharkhand"><liferay-ui:message key="biharandjharkhand"/></aui:option>
<aui:option value="DelhiandNCR"><liferay-ui:message key="delhiandNCR"/></aui:option>
<aui:option value="aryana"><liferay-ui:message key="haryana"/></aui:option>
-

How do i need to do.

-- Suresh


Could anyone please help on this...

Thanks
Suresh
Philipp Schwarz
RE: AUI form (Select Options)
November 10, 2012 2:02 PM
Answer

Philipp Schwarz

Rank: Junior Member

Posts: 28

Join Date: October 19, 2012

Recent Posts

Hey,

you could try the following:

1<aui:option value="-1" selected="<%= true %>"> Select State </aui:option>


Hope this helps,
Phil