close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Post development, required fields

Thread began 9/09/2011 5:40 am by biz295654 | Last modified 9/09/2011 11:19 am by biz295654 | 1708 views | 6 replies |

biz295654WebAssist

Post development, required fields

After a registration form was completed in Security Assist, the client now wants to have more fields required. Post creation, what are the steps to add required to more fields?

Thanks much.

Sign in to reply to this post

biz295654WebAssist

In the fc_registration_default.xml I found, for the password field this:

<wa_field_set_validation>Password values must match.</wa_field_set_validation>
<wa_field_reference src="text_medium.xml" label="Confirm" validation="{ required: true, isConfirm: true, regEx: null, minAlphaChars: null, maxAlphaChars: null, minNumbers: null, maxNumbers: null, minUpperAlphaChars: null, maxUpperAlphaChars: null, minSpecialChars: null, maxSpecialChars: null, minChars: null, maxChars: null }" serverValidation="required" spryValidation="undefined, { isConfirm:true }" continueLine="false"></wa_field_reference>



Comparing that to a field that is not required,

<wa_field_set_validation>Please enter a value.</wa_field_set_validation>
<wa_field_reference src="text_medium.xml" label="company" validation="{ required: false, type: 'none', format: null, minChars: null, maxChars: null, minValue: null, maxValue: null }" spryValidation="none, { isRequired:false }" continueLine="false"></wa_field_reference>


there is the difference of

required: true, isConfirm: true

vs

required: false

and
{ isConfirm:true }

vs
{ isRequired:false }



So, if I were to change the second set to

<wa_field_set_validation>Please enter a value.</wa_field_set_validation>
<wa_field_reference src="text_medium.xml" label="company" validation="{ required: true, type: 'none', format: null, minChars: null, maxChars: null, minValue: null, maxValue: null }" spryValidation="none, { isRequired:true }" continueLine="false"></wa_field_reference>


would that be what I should be doing? I don't want to break anything. Is there any other place I should change something, if I am on the right track?

Thanks much

Sign in to reply to this post

Jason ByrnesWebAssist

On the registration page, open the server behaviors panel and double click the Server Validation server behavior.


select the Required validation type. Click the lightning bolt next to Server Variable and select the aditional field that should be required, then click the plus button to add it to the list of validations.

repeat this for each additional form element that should be required.


you will then need to create the validation error massages, type the error test next to the form element, highlight the error text then go to WebAssist -> Forms -> Validation -> Validation Show If.

Select the validation to trigger the error message, then click the plus button and click ok.

Use the same steps to create the validation error messages for the other elements.

Sign in to reply to this post

biz295654WebAssist

Thanks so much Jason. I'll give it a try.

Sign in to reply to this post

biz295654WebAssist

Perfect! Thank you so much, as always.

Sign in to reply to this post

biz295654WebAssist

Well, my test worked for one field. But then other fields didn't so I'm starting fresh.

I stupidly upgraded today to the newest SA in the middle of this, so I may have caused myself a problem.

Sign in to reply to this post

biz295654WebAssist

Starting over. One issue was solved on the phone, so I can't find notes on it in the forum. It was how to get the redirect after logged in to go to the update page. A form redirect somewhere. Sorry for all the hassle.

never mind... i think I found it...

$WA_Auth_Separator."".((isset($_POST["Log_In_group_password"]))?$_POST["Log_In_group_password"]:"") .""),
"columnTypes" => explode($WA_Auth_Separator,"text".$WA_Auth_Separator."text"),
"sessionColumns" => explode($WA_Auth_Separator,"ID"),
"sessionNames" => explode($WA_Auth_Separator,"SecurityAssist_ID"),
"successRedirect" => "userupdate.php",
"failRedirect" => "forgotpassword.php",
"gotoPreviousURL" => TRUE,
"keepQueryString" => TRUE
);


But, curious why this wouldn't be built into the system...

sorry for noise....

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