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

User Update country field not working

Thread began 6/10/2014 9:09 pm by johna1964 | Last modified 6/11/2014 1:36 pm by Jason Byrnes | 660 views | 9 replies |

johna1964

User Update country field not working

Hi! I am seeking help with one form field on the User Update page. I have found the is no closing spry validation code and this or something similar should be within the page:
var User_Update_group_11_Country = new Spry.Widget.ValidationSelect("User_Update_group_11_Country", "none", {validateOn:["blur"]});

When I attempt to add it manually, the Spry Select properties tell me the spry structure appears to be damaged. Can you take a look at it with and without the code? Maybe you can see what is missing.

It will not allow anyone out of the country US to update correctly. It is automatically selecting United States and won't allow any change.

Sign in to reply to this post

Jason ByrnesWebAssist

You wont be able to add that spry validation manually, a spry validation field requires more than just the that one line of code.

to add spry validation to an existing select field, select it in design view, then go to:
insert -> Spry -> Spry validation Select

Sign in to reply to this post

johna1964

Hi Jason,
Got it. Thank you
Now, I need to know what to put in the dynamic list menu dialog box fields. These are set now to the following:
Options from record set: None
Values:
Labels:
Set Value Equal to: <?php (isset($_GET["invalid"])?ValidatedField("userupdate","User_Update_group_11_Country"):"") ?>

Are these correct or do I need to change something? I have uploaded the updated file.

Thank you for your help!

Sign in to reply to this post

Jason ByrnesWebAssist

That looks correct.

Sign in to reply to this post

johna1964

Hi again,

The reason I am asking is because all of the other form fields have for example:
<input id="User_Update_group_1_Phone" name="User_Update_group_1_Phone" type="text" value="<?php echo $row_SecurityAssistusers["UserPhone"]; ?>" class="formTextfield_Large" tabindex="12" onblur="hideServerError('User_Update_group_1_Phone_ServerError');" />

And so it looks a bit different.

I will upload and test.

Thank you!

Sign in to reply to this post

Jason ByrnesWebAssist

ok, so really what you are asking is how to use the recordset value on page load and the validated entries value on validation field.

the code for that would be:



<?php (isset($_GET["invalid"])?ValidatedField("userupdate","User_Update_group_11_Country"):$row_SecurityAssistusers["UserCountry"]) ?>

Sign in to reply to this post

johna1964

Hi Jason,

Apparently. :-)

When I open the dialog box, the options for the record set section are none; Security Assistusers; and, SecurityAssistusers. Do I use either one of the options or do I use specifically the first or second? I think this has to do with the double opt in registration.

Thank you much!

Sign in to reply to this post

Jason ByrnesWebAssist

dont use any of the recordset settings.

for the select value equal to option, use the code i provided previously:

<?php (isset($_GET["invalid"])?ValidatedField("userupdate","User_Update_group_11_Country"):$row_SecurityAssistusers["UserCountry"]) ?>

Sign in to reply to this post

johna1964

Thank you Jason :-)

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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