Conditionally display a form field based on empty lookup field

By: Ashley Headrick | Asked: 03/27/2023
ForumsCategory: General questionsConditionally display a form field based on empty lookup field
Ashley Headrick asked 1 year ago
I want to conditionally display a field if a lookup field is empty (no results were found). 
  1. Users put in a registration number into a lookup field.
  2. Their registered name is displayed in a List lookup field 
If there is no entry tied to the registration number, I want to hide the empty registered name lookup field and show another field saying that the registration number is invalid.  How would I go about doing this?   
1 Answers
Bobby Clapp answered 1 year ago
Maybe create an HTML field with the message you want to display. Add conditional logic to that field to hide it if the value of list item 2 is blank?
Ashley Headrick replied 1 year ago

Thank you!

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community