Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hi @vivalis

    Hope you’re doing well today!

    I checked with our SLS team and it looks to be an expected behaviour when the change is made programmatically. To trigger the conditions you will have to use the JQuery trigger change method so the visibility conditions are updated, something like below

    jQuery('#text-2 input').val('hi').trigger('change');

    Further, this way it would also remove the need to use the JQuery hide and show method and it would be no longer needed.

    Hope this helps. Please let us know in case you have any queries.

    Kind Regards,
    Saurabh

    Thread Starter vivalis

    (@vivalis)

    Dear Saurabh,

    Thanks for your answer. I tested it in the console, and it’s working now. Maybe I did something wrong on my side.

    However, there’s another problem with conditionally hidden fields: I have a text field A with conditional visibility. That field A gets filled with a result by JS code. Then, there’s html field B that shows some text and the result from A. When A is hidden by condition, it’s content doesn’t show up in B.

    Could you check if you can replicate this problem?

    Kind regards, Roger

    Hi @vivalis

    I pinged our SLS Team so that they can review your query. We will post an update here as soon as more information is available.

    Kind Regards,
    Kris

    Hi @vivalis

    I apologize for the delay.

    It seems you’re using macro of text field(A) in the HTML field(B) and because it's hidden by condition that’s why not showing in the HTML. Could you please confirm if you want hidden field data too in the HTML?

    Kind Regards,
    Kris

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @vivalis ,

    It looks like you don’t need our further help as it’s been over a week without your response, so I will resolve this topic.

    kind regards,
    Kasia

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Conditional visibility based on programmatically changed fields’ is closed to new replies.