Type attribute on form input

Can someone tell me how to set a type attribute (type=“text”) on a form input box in Freeway Pro 5.0.1? By default the type attribute is not added in Freeway, but the forms package I’m using (FormsToGo 4.0.1) requires the text type to be set or you can’t access its advanced features.

I can’t seem to find the correct dialog box to add this markup to these form elements.

Thanks in advance for your help. I had to go back in and add them manually in a text editor, and of course this causes Freeway to want to update the pages again (without my manually-added type markup).


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

On 14 Apr. 2008, 9:55 pm, Joe Crnich wrote:

Can someone tell me how to set a type attribute (type=“text”) on a form input box in Freeway Pro 5.0.1? By default the type attribute is not added in Freeway, but the forms package I’m using (FormsToGo 4.0.1) requires the text type to be set or you can’t access its advanced features.

Use the Extended dialog to do this. Select the text field, then choose Item > Extended from the main menu.

Press New, and in the dialog that pops up, enter

type
text

In the Name and Value fields.

I wish it did this automatically, too!

Walter


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

Walter,

Thanks for the quick response. I had figured out what to do before I even saw my own post here. I just needed a bit more time to find it.

Thanks again.

Joe


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

Hi!
I have now entered the information according to Softpress (wrote support) and looked into the forum. I have used the “post” function and added the php form I use. I get this message “No input file specified.” when trying to send the form…any ideas? Check the url:
http://www.sommersethdesign.no/kunder/tannlegekontoret/timebestilling.html

My php is uploaded using “Tim Plumb’s Upload Stuff Action”.

Please advice where I could have gone wrong…
PS! I use “post” and “timebestilling.php” in freeway.

Freeway version 5.1

Thanks in advance,

Tom
Norway


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

Hi Tom

This is difficult to diagnose without seeing the timbestilling.php file - If you can post that somewhere we can have a look at it.

What I did notice though was that both buttons Send Skjema and Slett Skjema are ‘Submit’ when one should be ‘Reset’

Check all your form items are named correctly to match your php file.

David


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

Hi David…This is what the php looks like:
(I dont understand code at all)

<?PHP ###################################################### # # # Forms To Go 4.0.1 # # http://www.bebosoft.com/ # # # ###################################################### define('kOptional', true); define('kMandatory', false); error_reporting(E_ERROR | E_WARNING | E_PARSE); ini_set('track_errors', true); function DoStripSlashes($fieldValue) { if ( get_magic_quotes_gpc() ) { if (is_array($fieldValue) ) { return array_map('DoStripSlashes', $fieldValue); } else { return stripslashes($fieldValue); } } else { return $fieldValue; } } function FilterCChars($theString) { return preg_replace('/[\x00-\x1F]/', '', $theString); } function CheckEmail($email, $optional) { if ( (strlen($email) == 0) && ($optional === kOptional) ) { return true; } elseif ( eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $email) ) { return true; } else { return false; } } if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $clientIP = $_SERVER['HTTP_X_FORWARDED_FOR']; } else { $clientIP = $_SERVER['REMOTE_ADDR']; } $FTGetternavn = DoStripSlashes( $_REQUEST['etternavn'] ); $FTGfornavn = DoStripSlashes( $_REQUEST['fornavn'] ); $FTGtelefon = DoStripSlashes( $_REQUEST['telefon'] ); $FTGemail = DoStripSlashes( $_REQUEST['email'] ); $FTGadresse = DoStripSlashes( $_REQUEST['adresse'] ); # Fields Validations $validationFailed = false; if (!CheckEmail($FTGemail, kMandatory)) { $FTGErrorMessage['email'] = '**vennligst skriv inn epost'; $validationFailed = true; } # Include message in error page and dump it to the browser if ($validationFailed === true) { $errorPage = 'ErrorErrors found: '; $errorPage = str_replace('', $FTGetternavn, $errorPage); $errorPage = str_replace('', $FTGfornavn, $errorPage); $errorPage = str_replace('', $FTGtelefon, $errorPage); $errorPage = str_replace('', $FTGemail, $errorPage); $errorPage = str_replace('', $FTGadresse, $errorPage); $errorPage = str_replace('', $FTGErrorMessage['email'], $errorPage); $errorList = implode("
\n", $FTGErrorMessage); $errorPage = str_replace('', $errorList, $errorPage); echo $errorPage; exit; } # Email to Form Owner $emailSubject = FilterCChars("Skjema Tannlegekontoret.no"); $emailBody = "etternavn : $FTGetternavn\n" . "fornavn : $FTGfornavn\n" . "telefon : $FTGtelefon\n" . "email : $FTGemail\n" . "adresse : $FTGadresse\n" . ""; $emailTo = 'Sommerseth Design '; $emailFrom = FilterCChars("$FTGemail"); $emailHeader = "From: $emailFrom\n" . "MIME-Version: 1.0\n" . "Content-type: text/plain; charset=\"ISO-8859-1\"\n" . "Content-transfer-encoding: 7bit\n"; mail($emailTo, $emailSubject, $emailBody, $emailHeader); # Confirmation Email to User $confEmailTo = FilterCChars($FTGemail); $confEmailSubject = FilterCChars("no-reply: Din henvendelse er nå mottatt"); $confEmailBody = "etternavn : $FTGetternavn\n" . "fornavn : $FTGfornavn\n" . "telefon : $FTGtelefon\n" . "email : $FTGemail\n" . "adresse : $FTGadresse\n" . ""; $confEmailHeader = "From: email@hidden\n" . "MIME-Version: 1.0\n" . "Content-type: text/plain; charset=\"ISO-8859-1\"\n" . "Content-transfer-encoding: 7bit\n"; mail($confEmailTo, $confEmailSubject, $confEmailBody, $confEmailHeader); # Include message in the success page and dump it to the browser $successPage = 'SuccessForm submitted successfully. It will be reviewed soon.'; $successPage = str_replace('', $FTGetternavn, $successPage); $successPage = str_replace('', $FTGfornavn, $successPage); $successPage = str_replace('', $FTGtelefon, $successPage); $successPage = str_replace('', $FTGemail, $successPage); $successPage = str_replace('', $FTGadresse, $successPage); echo $successPage; exit; ?>

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

I did it!!!
Not to proud of it tho…I should have created a folder for my exported .php file from Forms To Go. So when I uploaded the page from Freeway it added a prefix to the .php file rendering it useless.

However, now it works well!
Thanks for everything.

Tom


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

Well done Tom - a lesson learned this way is a more valuable one.

I’m sorry that I didn’t spot it for you but there was no clue in the code etc.

Did you alter the 2 X submit buttons. - yes I see you did.

David


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