Foros

Inicio » Alloy UI » English

Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Suresh Kumar
AUI form (Select Options)
10 de octubre de 2012 2:53
Respuesta

Suresh Kumar

Ranking: Junior Member

Mensajes: 33

Fecha de incorporación: 9 de mayo de 2012

Mensajes recientes

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)
11 de octubre de 2012 4:28
Respuesta

Suresh Kumar

Ranking: Junior Member

Mensajes: 33

Fecha de incorporación: 9 de mayo de 2012

Mensajes recientes

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)
10 de noviembre de 2012 14:02
Respuesta

Philipp Schwarz

Ranking: Junior Member

Mensajes: 26

Fecha de incorporación: 19 de octubre de 2012

Mensajes recientes

Hey,

you could try the following:

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


Hope this helps,
Phil