Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Charu Babbar
Regarding web content structure
29 maggio 2012 2.24
Risposta

Charu Babbar

Punteggio: Regular Member

Messaggi: 167

Data di Iscrizione: 13 settembre 2011

Messaggi recenti

Hi,

I have make a structure in web content in which i make text field repeatable.


when I am coming at form then i click on add(+) button for making its instance. and then multiple instances of same field becomes.

If we enter any data in that text field then it should also again and again comes in text field. I wants when we make the instance of that text field then its data should not be replicated.

How Can I avoid the replication of data when i make the instances of same text field.


Thanks
Hiral Ramavat
RE: Regarding web content structure
29 maggio 2012 11.23
Risposta

Hiral Ramavat

Punteggio: Junior Member

Messaggi: 98

Data di Iscrizione: 13 febbraio 2012

Messaggi recenti

Hi Charu,

How you are getting the data of those text boxes in your template?

Because you can not get directly with the name of that text field, like this - $text-field.getData()

You have to make the for loop for the siblings of that text fields.

Below is the example code for that you have to write in your template.

#foreach($item in $text-field.getSiblings())
<b>$item.getData()</b>
#end

Where "text-field" is the name of your text-field.

Hope it will help you.

Thanks,
Hiral
Charu Babbar
RE: Regarding web content structure
31 maggio 2012 9.51
Risposta

Charu Babbar

Punteggio: Regular Member

Messaggi: 167

Data di Iscrizione: 13 settembre 2011

Messaggi recenti

When I click at gui + button for adding more. I have enter some text in 1 text field. then click the + button for add more text field, then data in above box also comes with that clone.

I wants clone of one text field comes empty.

How can I acheive this.

Thanks
Hiral Ramavat
RE: Regarding web content structure
31 maggio 2012 10.06
Risposta

Hiral Ramavat

Punteggio: Junior Member

Messaggi: 98

Data di Iscrizione: 13 febbraio 2012

Messaggi recenti

I have tried this thing with my machine setup.

I am using Liferay 6.0 EE SP2 and i am not able to reproduce this issue.

Which version of liferay are you using?

May be this is OOB issue or something you have customized with the web content portlet.

Thanks,
Hiral
Charu Babbar
RE: Regarding web content structure
31 maggio 2012 21.35
Risposta

Charu Babbar

Punteggio: Regular Member

Messaggi: 167

Data di Iscrizione: 13 settembre 2011

Messaggi recenti

Hi,


What steps u follow to check this? Can u describe it!
Charu Babbar
RE: Regarding web content structure
1 giugno 2012 6.54
Risposta

Charu Babbar

Punteggio: Regular Member

Messaggi: 167

Data di Iscrizione: 13 settembre 2011

Messaggi recenti

Charu Babbar:
Hi,


What steps u follow to check this? Can u describe it!


Like in this image:Fox textfield + button then this field comes below again and its data: "Todds" comes with it.

I wants when I click on add(+) button then text field comes empty. I can fill this. But it should be emplty.
How can I do this? Plz anybody help..
Allegato

Allegati: webcontent.png (21,7k)
Charu Babbar
RE: Regarding web content structure
3 giugno 2012 21.23
Risposta

Charu Babbar

Punteggio: Regular Member

Messaggi: 167

Data di Iscrizione: 13 settembre 2011

Messaggi recenti

Charu Babbar:
Charu Babbar:
Hi,


What steps u follow to check this? Can u describe it!


Like in this image:Fox textfield + button then this field comes below again and its data: "Todds" comes with it.

I wants when I click on add(+) button then text field comes empty. I can fill this. But it should be emplty.
How can I do this? Plz anybody help..



Hi,

Anybody in Liferay staff can answer me this question. Is it possible or not? If possible then How? If not then why not?

Plz tell me its urgently..

Thanks
Charu Babbar
RE: Regarding web content structure
29 novembre 2013 3.36
Risposta

Charu Babbar

Punteggio: Regular Member

Messaggi: 167

Data di Iscrizione: 13 settembre 2011

Messaggi recenti

I got one solution for this. Using jquery in js file. I have acheived this. emoticon