• Resolved neuseeland

    (@neuseeland)


    Hi Jordy,

    is it possible to have if-else within an AI submit form.
    Like in the prompt: “Answer my question <if ({NAME} !=””) “You are {NAME}”>
    while {NAME} is a AI Form Field.
    If the user leaves the AI form field “NAME” empty the AI submit form would use “Answer my question” as the promt
    If the user enters “Peter”, the AI submit form would use “Answer my question. You are Peter”
    In the end, I would like to use AI form fields which are not mandatory to be filled out. If they are filled out, they should be integrated with some context in the AI Form Submit promt.
    Is there a way to do that with PHP or Javascript within the AI Form Submit code-block?
    Thanks a lot

Viewing 1 replies (of 1 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @neuseeland,

    I thought about this before, but right now, I have a bit too much on my plate to think about it 🙂 But it would be lovely to have conditional forms. Right now, there is no way to do it, or it would be too complicated (you’ll need to write a lot of JS to react on events happening within the form). It’s better to think about a good architecture for this, then I’ll implement it. I’ll be honest with you, I think it will not come before 3-4 months. Too many other exciting stuff is going on right now with the plugin, and maybe within a few months, conditional forms might have no use 😉 Let’s see.

Viewing 1 replies (of 1 total)

The topic ‘if-clause within’ is closed to new replies.