I have almost successfully utilised the new “Send Form” Action in Freeway 6. I’ve run into a slight problem. The site that I am using this Action on is in Ukrainian. When I try to submit the form without one of the required fields filled in I get a polite message reminding me to fill in the required field. The message, however, is in English, which may not work for my Ukrainian language users. Any ideas on how to “fix” this?
You can link to the Form by clicking on the logo on the home page (in the top left-hand corner) of the site.
This version has a language picker enabled for English and Ukrainian so that you can choose which language to use in the error message.
The action is stored within the FW Application Package
To find it ‘Right Click’ the FW Application and ‘Show Package Contents’ - within that you will drill down through a succession of folders Contents>SharedSupport>Actions>FAST>Form Suite.fwactionb
Form Suite.fwactionb is also a package and you will need to ‘Right Click’ it and ‘Show Package Contents’ to reveal more folders Contents>Resources>Actions and finally the action itself ‘Send Form.fwaction’
Replace the action with the one you downloaded (once unzipped). This should really be done while FW is not running.
One thing to know about Actions – you can “override” the core Actions without editing them in place. You simply install the altered Action (which should have exactly the same name and filename, and should have a different / newer version number) and the the version you installed in your Actions folder will override the one that’s bundled inside Freeway. This makes it easy to upgrade an Action without cracking open the application bundle.
This version has a language picker enabled for English and Ukrainian so that you can choose which language to use in the error message.
The action is stored within the FW Application Package
To find it ‘Right Click’ the FW Application and ‘Show Package Contents’ - within that you will drill down through a succession of folders Contents>SharedSupport>Actions>FAST>Form Suite.fwactionb
Form Suite.fwactionb is also a package and you will need to ‘Right Click’ it and ‘Show Package Contents’ to reveal more folders Contents>Resources>Actions and finally the action itself ‘Send Form.fwaction’
Replace the action with the one you downloaded (once unzipped). This should really be done while FW is not running.
You simply install the altered Action (which should have exactly the same name and filename, and should have a different / newer version number) and the the version you installed in your Actions folder will override the one that’s bundled inside Freeway.
I didn’t know that this was true for Core Actions - thanks Walter.
If you are one of the few who use the System Actions folder (the one that’s shared between all users on your Mac) then you should also know that the order of importance (not unlike CSS in this regard) is as follows:
The last one wins. So if you have an Action in the bundle, it will be overridden by a same-name Action in the System Actions, and that in turn will be overridden by an Action in the User Actions.
Walter
On Dec 29, 2013, at 9:24 PM, DeltaDave wrote:
You simply install the altered Action (which should have exactly the same name and filename, and should have a different / newer version number) and the the version you installed in your Actions folder will override the one that’s bundled inside Freeway.
I didn’t know that this was true for Core Actions - thanks Walter.
Hey, guys, thanks! I’ll try all of that. The problem, however, is not in the “error” message. I have set up a separate “error page” (in Ukrainian), according to the instructions. Some of the fields in the form (on the form page) are marked “required”. So, you would think that, if one of the required fields is not filled out the user will be re-directed to the error page and then instructed what he/she needs to do to. With the “Send Form” action, however, if one of the required fields is not filled out a small pop-up message with a neat arrow (pointed at the un-filled field) appears on the same page that the form is on, instructing the user (in English) to fill out the required field. It’s that message that I need appearing in Ukrainian. For that matter, if I don’t like the message, how do I edit it even in English? What’s the sense of an “error page”? Please note, that when the form is correctly filled out (all the required fields have entries) the success page (in Ukrainian) comes up. Surprisingly, since the form is in a Lightbox pop-up, the “success” page also comes up in this Lightbox pop-up, replacing the form page. If this is the case, what kind of mistakes on the original form page will trigger the error page? Remains a mystery to me… Nonetheless, I will try to fix this with the modified action.
The action isn’t easily edited but maybe you should look at the alternative PHP Feedback Form action which allows different error pages depending on which error occurs. FreewayActions.com | PHP feedback form
What Browser(s) are you testing with? The Required fields setting in the Send Form action I believe uses HTML5 features for its errors - you could use one of the other actions Validate Form suite as another alternative - have a look on actionsforge
Thanks Dave! Up until now I have been using the PHP Feedback Form action and it worked great. There is one feature, however, which this action does not offer and which is a neat item in the core “Send Form” action: the ability to use “Placeholders” in my input fields, i.e., greyed-out text that indicates what is required of the user and that goes away once the user starts typing in the field. Of course, this feature requires HTML5, which I am using on all of my pages. It’s simply more elegant. But, again, the odd thing about this action is that it doesn’t allow you to get to the error page, since it alerts the user that he missed filling out a required field. In this event, a neat and, admittedly, polite message appears pointing to the “missing” field, prompting the user to fill it out. That message appears on the same page as the form, and NOT on the error page. I assume that the error page will appear, if the user tries to submit the form with an invalid email address. I can’t see any other use for it. Still, I’d like to be able to edit this little tidbit of a message. It seems that I cannot do this IN ANY LANGUAGE.
I have also tested on Explorer (latest version) and Safari. I’ll keep trying, though. Maybe the Validate Form action will help. Thank you for your assistance.
You can do this regardless of what form handler you use. If you look in the third tab of the Inspector while your form field is selected (and your page is set to HTML5 or XHTML5 output) you will see the placeholder text field there. You can add any placeholder you like in that field of the Inspector, and the proper HTML will be written so that the browser provides that coach text on screen. (Note that this means IE 9 and up, or any fairly recent version of Safari or Firefox or Opera or Chrome. I think it was added in Safari 3, to give you a sense of time scale.)
Walter
On Dec 30, 2013, at 12:49 PM, Roman Zvarych wrote:
which is a neat item in the core “Send Form” action: the ability to use “Placeholders” in my input fields
Walter, Dave! I’ve just figured it out (and I’m feeling kinda silly right now). The problem is not with the Action. The little pop-up message is generated by the browser. I guess my browser is set up for English, so I get an English message. When I reset it for Ukrainian, everything worked just fine. Sorry for the trouble guys! I’m still learning how to use all of these neat gizmos.