Welcome, Guest

How to clear data from entryfields?
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: How to clear data from entryfields?

How to clear data from entryfields? 2 years, 3 months ago #9818

Hello again.

I have a form (that is use for making limo reservations) where I dynamically hide or show some sections on my form depending on the user interaction.

For example: Section name = Airports
Element 1 name = LaGuardia
Element 2 name = JFK
Element 3 name = Newark

On this form the user will select by clicking on a radio button the airport they are leaving from. These 3 airports have a list of airlines that operate from each airport on each of the list elements I have inserted the airlines that operate from each airport.

If the user selects JFK I hide Laguardia and Newark elements. All that works fine the problem I have is. If the user select on the other airports elements and selects an airline then goes to a different airport the firt element will hide and the next will show if the user also selects another airline on that airport then I have 2 different airports with 2 different airlines, when the form is submited then I'll have 2 airports and 2 airlines on the same reservation form's information.

How do I clear the data that was inserted on an element when I switch to a different airport? (I use a radio button to switch the airports) I only want to send the information that was inserted on the elements that are visible on the form those which are hidden and might have information I don't want to send in on the form submit.

Please help on how to validate the form as I explain above. This is my first time using this component.

Thanks

Charles
  • antoncona
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Karma: 0

Re: How to clear data from entryfields? 2 years, 3 months ago #9836

I guess you use the visibility rules? If yes, then please paste them here.
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================

Re: How to clear data from entryfields? 2 years, 2 months ago #10113

This is the way I have it on my form..

turn on section passenger_info if switcher is airport
turn on section passenger_info if switcher is hotel
turn on section passenger_info if switcher is other

turn on section pickup_information if switcher is airport
turn on section pickup_airport if switcher is airport
turn off section pickup_airport if switcher is hotel
turn off section pickup_airport if switcher is other

turn on section pickup_information if switcher is hotel
turn on section pickup_hotel if switcher is hotel
turn off section pickup_hotel if switcher is airport
turn off section pickup_hotel if switcher is other

turn on section pickup_information if switcher is other
turn on section pickup_other if switcher is other
turn off section pickup_other if switcher is airport
turn off section pickup_other if switcher is hotel

turn on element lga_arriving_airline if arriving_airport is LaGuardia
turn off element jfk_arriving_airline if arriving_airport is LaGuardia
turn off element nwr_arriving_airline if arriving_airport is LaGuardia
turn off element islip_arriving_airline if arriving_airport is LaGuardia
turn off element tet_arriving_airline if arriving_airport is LaGuardia

turn on element jfk_arriving_airline if arriving_airport is JFK
turn off element lga_arriving_airline if arriving_airport is JFK
turn off element nwr_arriving_airline if arriving_airport is JFK
turn off element islip_arriving_airline if arriving_airport is JFK
turn off element tet_arriving_airline if arriving_airport is JFK

turn on element nwr_arriving_airline if arriving_airport is Newark
turn off element lga_arriving_airline if arriving_airport is Newark
turn off element jfk_arriving_airline if arriving_airport is Newark
turn off element islip_arriving_airline if arriving_airport is Newark
turn off element tet_arriving_airline if arriving_airport is Newark

turn on element islip_arriving_airline if arriving_airport is MacArthur
turn off element jfk_arriving_airline if arriving_airport is MacArthur
turn off element lga_arriving_airline if arriving_airport is MacArthur
turn off element nwr_arriving_airline if arriving_airport is MacArthur
turn off element tet_arriving_airline if arriving_airport is MacArthur

turn on element tet_arriving_airline if arriving_airport is Teterboro
turn off element jfk_arriving_airline if arriving_airport is Teterboro
turn off element lga_arriving_airline if arriving_airport is Teterboro
turn off element nwr_arriving_airline if arriving_airport is Teterboro
turn off element islip_arriving_airline if arriving_airport is Teterboro
  • antoncona
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Karma: 0

Re: How to clear data from entryfields? 1 year, 11 months ago #12409

I would like to refresh a bit this thread...

Is there a way to clear data placed in a section which was turned off by the user?

Let's say there is a checkbox_1: a user checked it and a section_1 has appeared. In the section there are few various fields: radiobuttons, text fields, etc.
But suddenly the user decided to turn the section_1 off.
Is there a way to clear the data placed in the section_1 which have been hidden?
  • Slawinski
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Karma: 0

Re: How to clear data from entryfields? 1 year, 10 months ago #12822

I have similar question like Slawinski. Is there a way to clear data placed in a section which was turned off by the user?

I'm a newbie with this tool and I would like to know how can I put some custom script (in this case this particular example) in QuickMode form.

Thank you!
  • bayshanac
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0

Re: How to clear data from entryfields? 1 year, 7 months ago #14086

This is exactly what I am looking for too, PLEASE HELP!!!
  • jucream
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
  • Page:
  • 1
  • 2
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.35 seconds

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany