close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

changing field labels

Thread began 9/15/2010 6:06 pm by chris373619 | Last modified 9/16/2010 5:17 pm by Jason Byrnes | 782 views | 9 replies |

chris373619

changing field labels

Hi,
I'm sing the latest version of Universal Email. How do I change the form field names on my form? I need to get rid of the "Contact_Is_Group" portion of field names. I have everything working I just need to change the names. How would I do that without messing everything up? Also how do I get rid of the "contact submit: Submit" field on the return email?

Thanks,
Chris

Sign in to reply to this post

Jason ByrnesWebAssist

in the email template file, the code to write the lable in the email will look like:

php:
<?php echo(str_replace("_"," ",$pkey)); ?>




change it to:

php:
<?php echo(str_replace("_"," ",str_replace("Contact_Is_Group_"""$pkey))); ?>



to remove that p0rtion of the field name in the email.



near the top of the email template file, you will see the following two lines:

php:
$removeIncludes = array();

$removeIncludes[] = "Security";



change that to:

php:
$removeIncludes = array();

$removeIncludes[] = "Security";
$removeIncludes[] = "submit";



this will remove the submit button from the email ass well.

Sign in to reply to this post

chris373619

I'm having trouble with the first part of you instructions.

<?php echo(str_replace("_"," ",str_replace("Contact_Is_Group_", "", $pkey))); ?>

I added it in and it didn't work. Then I looked at it and thought maybe it had 2 extra spaces.

<?php echo(str_replace("_"," ",str_replace("Contact_Is_Group_","",$pkey))); ?>

But that didn't work. Any Ideas? I'm using the "block.php template"

The other code worked perfect!

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the block.php page and the form page in a zip archive please.

Sign in to reply to this post

chris373619

The file is attached.

Attached Files
Block_2.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

please send the form page also.

Sign in to reply to this post

chris373619

This is my php file.

Attached Files
index.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

in the form, the labels are using "Contact_Us_group" instead of "Contact_Is_Group"


change:

php:
<?php echo(str_replace("_"," ",str_replace("Contact_Is_Group_"""$pkey))); ?>




to:

php:
<?php echo(str_replace("_"," ",str_replace("Contact_Us_group_"""$pkey))); ?>
Sign in to reply to this post

chris373619

That was it. Just a typo. That works perfect now. Thanks so much for your help! That was fast!

Sign in to reply to this post

Jason ByrnesWebAssist

no worries, glad to hear it's working.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...