TOPIC:

How to show a warning if a value is repe 1 week 1 day ago #282492

  • Topic Author
  • arancha21
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 65
  • Thanks: 0
Hello, I have managed to get it to work but I need that when it finds a duplicate value, it just warns but allows to continue with the form. The thing is that this form allows it to be modified from ContentBuilder and due to this code that it gave me when editing the form it gives an error. I have tried to change the code:

echo 'false';
exit;

by:

echo 'false';
continue;

But what happens is that it does not show the duplication notice.
Can you tell me what I'm doing wrong?
Attachments:

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

How to show a warning if a value is repe 6 days 1 hour ago #282521

  • Rashidali62019
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 1
  • Thanks: 0
o show a warning if a value is repeated, you can use a conditional statement to check if the value already exists in a list or an array.knowledgeforu.info/sehat-card/ Here's an example in Python:

my_list = [1, 2, 3, 4, 2, 5] # example list with a repeated value

if len(my_list) != len(set(my_list)): # check if there are any repeated values
print("Warning: There are repeated values in the list.")
else:
print("There are no repeated values in the list.")

In this example, we use the set() function to remove duplicate values from the list, and then compare the length of the original list with the length of the set. If the lengths are not equal, then there are repeated values in the list, and we show a warning message.

You can modify this example to suit your specific needs, such as checking for repeated values in a database or a file, or displaying the warning message in a different way.

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

How to show a warning if a value is repe 5 days 3 hours ago #282532

  • Topic Author
  • arancha21
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 65
  • Thanks: 0
I don't understand this answer nor what does the link that appears mean. @TheMuffinMan can you review my query?

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

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

Support Chat

Join our Discord chat and enter the Crosstec channels for live-support, chat forums and interact directly with the community!

After joining, please enter the Crosstec Area and use the #crosstec-support or #crosstec-general channels.

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

Subscribe to news and updates!

Special Offer

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!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!