Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

CB Conditionals - Display fields when a file is uploaded

  • infovarep
  • infovarep
  • OFFLINE
  • Posts: 12
  • Thanks: 1
  • Karma: 0
11 years 1 month ago - 11 years 1 month ago #233919 by infovarep
Hi, I'm trying to display a field, based on a file field. If users actually upload a file, then display the field.

With the current configuration, the field is displayed when the user change the drop-down from "No change of file" to "Upload file". But doesn't ensure that the users actually uploads a file.




Is there a special configuration that I'm missing?

I have CB 1.9, latest conditional plugin, joomla 3.1.

Thank you.

I change the file field to required, and when I select a file the conditional doesn't work :(
Attachments:
Last edit: 11 years 1 month ago by infovarep.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #233932 by krileon
Not Empty check won't work, it's never empty. You can check if it's Equal To 1 to determine if the dropdown has changed to upload, but it's still not going to know if they selected a file or not.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • infovarep
  • infovarep
  • OFFLINE
  • Posts: 12
  • Thanks: 1
  • Karma: 0
11 years 1 month ago #233937 by infovarep
If conditional plugin can't check if a file have being uploaded, can I use Auto Actions???

like...

Type: Redirect
Trigger: onBeforeUpdateUser
Access: Everybody
Conditional: [cb_myfile] is uploded...

Redirect to error page, or message or something???

Thank you.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #233939 by krileon
If you absolutely need a file uploaded then set the field as Required and don't bother conditioning off of it as it's always expected to have a value. No, CB Auto Actions can't help you with this.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • infovarep
  • infovarep
  • OFFLINE
  • Posts: 12
  • Thanks: 1
  • Karma: 0
11 years 1 month ago #233946 by infovarep
I'm going to put a label asking users to upload a file, very interesting how conditionals work, when other fields depend on a "file field" and you don't upload a file but you change the dropdown and fields are displayed below, the information is not being saved.

I guess is something that can be added to the next release, but so far, it's working fantastic.

Thank you for the quick answers, I will use labels to indicate the users what to do.


:)

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

Moderators: beatnantkrileon
Powered by Kunena Forum