LLM Prompts

WPForms Conditional Logic Generator

Generates conditional logic rules for WPForms based on a user's description.

The method

Use this prompt within ChatGPT. First, clearly describe the desired behavior of your WPForms conditional logic. Include the specific fields involved (e.g., ‘Department’, ‘Email’), the conditions (e.g., ‘is’, ‘contains’), and the actions to trigger (e.g., ‘show field’, ‘send email’).

The prompts

Prompt 1
I want to create a WPForms form with conditional logic. If the 'Department' field is 'Sales', then show the 'Sales Manager Email' field. If the 'Department' field is 'Marketing', then show the 'Marketing Manager Email' field. If neither Sales nor Marketing is selected, hide both 'Sales Manager Email' and 'Marketing Manager Email' fields. Additionally, when the form is submitted and the 'Department' is 'Sales', send a notification email to [email protected]. When the 'Department' is 'Marketing', send a notification email to [email protected].
Prompt 2
Design a conditional logic rule for my WPForms contact form. If the 'Inquiry Type' field is 'Support', then show the 'Support Ticket Number' field and hide the 'Sales Representative' field. If the 'Inquiry Type' field is 'Sales', then show the 'Sales Representative' field and hide the 'Support Ticket Number' field. If the 'Inquiry Type' field is 'General', then hide both the 'Support Ticket Number' and 'Sales Representative' fields. Ensure the solution accounts for a multi select dropdown menu type field for 'Inquiry Type'.
Prompt 3
I need help creating a WPForms with conditional logic. If the 'Product Type' is 'Software' then show the 'Software Version' field, if the 'Product Type' is 'Hardware' then show the 'Hardware Model' field, if the 'Product Type' is 'Service' then show the 'Service Agreement ID' field. 'Product Type' is a single select dropdown field. No matter the selection also ensure that the 'Urgency Level' field is always displayed.
Prompt 4
Create conditional logic for a WPForms event registration form. If the user selects 'Workshop A', show the 'Workshop A Materials' field. If they select 'Workshop B', show the 'Workshop B Materials' field. If they select both 'Workshop A' and 'Workshop B', show both the 'Workshop A Materials' and 'Workshop B Materials' fields. If they do not select either Workshop A or Workshop B, hide both fields. The field type is a multi select checkbox. Also, if 'Workshop A' is selected then the email notification contains the text 'Materials for Workshop A will be sent'. Similarily if 'Workshop B' is selected then the email notification contains the text 'Materials for Workshop B will be sent'. If both are selected include both messages. If neither is selected don't include any workshop material text in the email.