show/hide on click

I keep coming back because you so helpful…

I have looked at a few softpress links, namely the below, to try to figure this one out myself but don’t unite get it.

I am trying to have two text fields and a button on a page, appear when another button is clicked. It is essentially adding another line so the user can submit more information. This would be repeated a number of times on the page.

What I understand is that I want a trigger in the way of the button, and the text fields would be the targets… But I can’t get it to work


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I can’t get it to work

Show us what you have so far

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

https://dl.dropboxusercontent.com/u/433431/Test/untitled2.html


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Of course that example page is for Express - your milage for Pro is different as there are more options.

If this is part of your Form submission scenario then that may alter things too.

However one of the easiest methods is to use Target Show/Hide layer action in conjunction with the Rollover action - example http://www.deltadesign.co/fw_examples/fwactions/rollover2.html

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I’d encourage you to use my Reflector script/service while designing your form. It’s just a PHP page on my server that formats and displays any form submissions (and cookies) that you send to it. In Freeway, open the Page / Form Setup dialog, and paste this URL into the Action field:

http://scripty.walterdavisstudio.com/reflector.php

Now when you submit the form, you will see exactly what the server will see. None of your data are stored in any way, this is just a debugging tool for you (well, I wrote it for me) to use when laying out your forms, to ensure that what you mean to send is what is actually leaving your form and reaching the server.

One thing this will show you is that checkboxes and radio buttons do not send anything – not key or value – when they are not checked, so to send the ‘nothing was checked’ message to your server, you have to include a hidden field before the first radio button or checkbox in a group, with its value set to nothing.

Another thing this will show you is that just because a field is hidden, doesn’t mean that the server won’t receive it (if it was checked or has a value). If you enter some data in a field, and subsequently hide it with JavaScript, when you submit the form, that field and its value will be sent to the server anyway. Your form handling logic will need to understand that if the “hide this” checkbox is checked (or not checked) that it should ignore the fields that are hidden, even if they are sent.

One more goodie you will learn is that a Select control (picker) has to be constructed in a certain manner if you want to pass a null value from it (say if you have a “Please choose…” option at the top of the list, and you don’t want that value to be sent to the server). Freeway does not get this correct, and I have written a helper Action to correct the published code: Select Fix - ActionsForge

Hope this helps,

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I want a trigger in the way of the button, and the text fields would be the targets… But I can’t get it to work

A quick example using Rollover on the Add Button and Target Show/Hide Layer on the addition Table items

http://deltadesign.co/FW7Test/table-test.html

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options