The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Can you combine fields? - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Can you combine fields? (/showthread.php?tid=452) |
Can you combine fields? - seawind - Jan 22nd, 2010 You have 2 fields for a phone number one field holds the area code and another field holds the number. Now you go to print your form and you want both of those fields to print together on one line combining the area code with the number only seperated by a - is this possible or something like it? Example: This is what it looks like now: Phone area code: 999 Phone number: 999-9999 I want it to come together like this: Full phone number: 999-999-9999 Thanks! RE: Can you combine fields? - anjellara - Jan 23rd, 2010 Hello Seawind, You have not mentioned about any programming language. And R u printing data direct from the form or first stored in the database? Give some idea so that one can help you. RE: Can you combine fields? - seawind - Jan 23rd, 2010 I apologize, it is a multipage form created with the API. So yes it is stored in the database before being printed. Currently where it says html / printer-friendly I select One submission per page and display to print the form. Here is one of the pages: Code: <form action="/pages/form.php" method="post"> Any ideas? RE: Can you combine fields? - martin_undefined - Jan 25th, 2010 (Jan 22nd, 2010, 8:34 PM)seawind Wrote: You have 2 fields for a phone number one field holds the area code and another field holds the number. Now you go to print your form and you want both of those fields to print together on one line combining the area code with the number only seperated by a - is this possible or something like it? Hi, I think the submission pre-parser might help you with this. http://modules.formtools.org/submission_pre_parser/ RE: Can you combine fields? - anjellara - Jan 25th, 2010 Hello Seawind, As you shows your code it is in HTML. So its no concern with masking the text field. So for your desired output you have to work on your database. You have to create one query for your desired output. Try once or I will send you the query structure. RE: Can you combine fields? - seawind - Jan 26th, 2010 Awesome, got it working with the submission pre parser! Thanks for the help guys! |