Heres what I want to do… Create a form for ordering personalized brass plates. After they fill in the engraved text, I want to place 2 buttons, one that says “I want your designers to create my brass plate” another button that says " I want to more choises"
This button would reveal a show/hide layer with check boxes, allowing them to choose, bold, italic, all caps etc.
Will easyform be able to handle this? My plan is to have all the form fields on one layer and just “hide” the options check boxes with a solid color or graphic.
I don’t see why not, you could try and see if everything worked as
expected.
What the easiForm Element action does is actually very simple, it just
coverts the item ‘Name’ the user enters in the inspector for that item
to a value in an array, showing or hiding should not make a difference
as long as it is not a ‘Required’ field, if it was then you would have
a problem with it when it was hidden, although even that you could get
around with a little hand coding.
HTH
On Feb 11, 2011, at 3:16 PM, Tychain wrote:
Heres what I want to do… Create a form for ordering personalized
brass plates. After they fill in the engraved text, I want to place
2 buttons, one that says “I want your designers to create my brass
plate” another button that says " I want to more choises"
This button would reveal a show/hide layer with check boxes,
allowing them to choose, bold, italic, all caps etc.
Will easyform be able to handle this? My plan is to have all the
form fields on one layer and just “hide” the options check boxes
with a solid color or graphic.
Thanks Mike… Just wanted to be sure before I go off and do all the work.
What if the customer changes their mind after specifying the (once hidden) now revealed options. They click the “Let our designers decide” button and the options are hidden again.
How can I know, when I receive the form that they did that? Can I make the “designers decide” button clear just those fields?
Since you’re putting those fields in the HTML box to cause them to
show/hide, it should be pretty simple to zero them out using JavaScript.
Make a note of the ID of the box as reported by Freeway in the Title
field of the Inspector. This will probably be item22 or similar,
unless you took the trouble to change it to something smarter.
Apply Protaculous to your page, and choose prototype-packed from the
library picker.
Click once on your “Let the Designer decide” button, and choose Item /
Extended from the main menu. Click the New button, and in the Name
field, enter
onclick
In the Value field, enter the following (note this will only work on
text inputs, not pickers or other non-text elements). Make sure you
change the fake ID to match your real ID.
$('item22').select('input').invoke('clear');
Okay out of the stack of dialogs, publish, and try it out. You should
be able to enter anything you like in these fields, then press the
Designer button and they will clear out.
Walter
On Feb 11, 2011, at 2:37 PM, Tychain wrote:
How can I know, when I receive the form that they did that? Can I
make the “designers decide” button clear just those fields?
thanks Walter but these will be check boxes. They all start unchecked.
I think the best way might be to make the showhide buton into a form (something) as well… if its off, I’ll ignore any form data in this section. (sorry if my form lingo seems made up… it pretty much is)
Can I do that? Can a form button also be a show/hide action?
Maybe I just need to dive into this… I seem to learn best when Im floundering in my own ignorance : )