close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Form Fields Not Appearing On Binding To Form Update

Thread began 11/06/2019 3:57 pm by BillHobbs | Last modified 11/07/2019 1:20 pm by Ray Borduin | 34 views | 4 replies |

BillHobbs

Form Fields Not Appearing On Binding To Form Update

I have a repeat form that uses javascript to count the characters of two form fields. In order for the javascript to work the form field names have to be different. I'm using a repeat of the recordset to create all the forms in the database for that recordset's values.

In order for the form fields to show up with the appropriate record character count I echoed the record ID to the end of the form field's name to make each field name unique.

The javascript works, but when I try to column bind tthe form fields to update them they don't show up when I try to bind the values.

Any idea on how to bind these. I tried to use another javascript to mirror the content to another form field and it causes my character count script to stop working.

I've uploaded my file. Thanks.

Attached Files
manage_seo.php
Sign in to reply to this post

Ray BorduinWebAssist

It looks like you are trying to do a multiple update. To do that you would either have to hand code your update and wrap it in a loop manually.

The easier way to do this is to remove the php code in the form element names that you have added manually. Then apply the Multiple Update server behavior. That will automatically rename your form elements to work with that server behavior.

Sign in to reply to this post

BillHobbs

Okay I tried that and it didn't work.

1. My character count Javascript doesn't work now, the Javascript requires the field name to be different for each iteration of the form field.
2. I get an error message when I'm trying to apply the Server Behavior. I've attached a screen shot and the latest file.
3. When I submit the form it redirects back to the page, but the screen is white until I refresh.

You can see the form in action here: http://focusonmybusiness.com/admin/manage_pages_seo.php

You'll see that the first iteration of the Keywords and Description have the character counters, but the rest do not.

Attached Files
manage_pages_seo.php
Sign in to reply to this post

Ray BorduinWebAssist

Well then you probably need to go back to the original code and then create your own loop around the update code and hand edit the update values to work. I can help with this in a premier support ticket.

Sign in to reply to this post

BillHobbs

Thanks for the help. I figured it out.

I changed the javascript to use an ID based on an onkeyup value and sent the character count value to a div with an ID matching the onkeyup value.
That way the binding to the textarea worked fine.

I'm not much of a javascript coder, but with a little study of the code I was utilizing it allowed me to figure out.

Sign in to reply to this post

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...