TOPIC:

a password 1 month 1 week ago #276843

  • Topic Author
  • Revilli
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 7
  • Thanks: 0
Hi, I have the same problem as this user ( crosstec.org/en/forums/3-breezingforms-f...-password-field.html ) in creating my form must enter a predefined password for the form to progress, but I have a list of predefined words ( names of recruitment agencies). I've tried to add in the extra words in the code but don't know if I'm using the correct syntax or even if this is doable here?

function ff_password_validation(element, message)
{
if (element.value!='Reed' 'Hays') {
if (message=='') message = element.name+" faild in my test.\n"
ff_validationFocus(element.name);
return message;
} // if
return '';
} // ff_password_validation

Please Log in or Create an account to join the conversation.

a password 1 month 1 week ago #276850

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 11156
  • Karma: 3
  • Thanks: 730
Hi,

the code should be like this:
function ff_password_validation(element, message)
{
if (element.value!='Reed' || element.value!='Hays') {
if (message=='') message = element.name+" faild in my test.\n"
ff_validationFocus(element.name);
return message;
} // if
return '';
} // ff_password_validation
this means is password field is different then Reed or Hays show error

If you need more help, let me know

Regards,
Tihana

Please Log in or Create an account to join the conversation.

a password 1 month 1 week ago #276855

  • Topic Author
  • Revilli
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 7
  • Thanks: 0
Many thanks, and thank you for the prompt reply.

Ideally I would like to use a list selector to be the multiple password element, listing all the recruitment agencies. The password text field isn't great for this, it doesn't display the letters only dots and have no control over how the user enters the name, unless instructed, which isn't great UE.

Is it possible to build this round a drop down list as a password element or is that only available on text field element?

Please Log in or Create an account to join the conversation.

a password 1 month 1 week ago #276857

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 3158
  • Karma: 2
  • Thanks: 153
Hi,

Is it possible to build this round a drop down list as a password element or is that only available on text field element?


you can make a select list but, as the name said its is a select list, and the user only can select some of the offered values in the select list, they can not insert the password as in the textelement

If I didn't understand well, please explain a little better and I will try to help you!

If you have more questions, feel free to ask!

Regards,
Mirko

Please Log in or Create an account to join the conversation.

a password 1 month 1 week ago #276859

  • Topic Author
  • Revilli
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 7
  • Thanks: 0
No problem, I understand, I expected that was the reason. I'll sent through a photoshop mock up of what I'm trying to do.

It's for an application form, but only for workers employed through a recruitment agency and not workers directly employed by the government.

We don't want government employees using this form to apply so want to force users to enter a recruitment agency name before they have access to the application and proceed to complete the form.

Apologies if this is all a bit confusing,

Please Log in or Create an account to join the conversation.

a password 1 month 1 week ago #276861

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 3158
  • Karma: 2
  • Thanks: 153
Hi,


hmm, maybe you can use visible rules, for example, you can make a one text element where the user needs to insert the name of the agency name, and if the agency name is correct, then below will appear the necessary elements to fill out.




Let me know!

Regards,
Mirko

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Time to create page: 0.051 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!