Announcement

Collapse
No announcement yet.

Wysiwyg fields empty behaviour

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wysiwyg fields empty behaviour

    Hi.

    I try to figure out what is not working here.

    I have a formula in the entity definition that says:

    ifThenElse(notaPosterior == null,
    notaPosteriorExiste = 0,
    notaPosteriorExiste = 1);

    notaPosterior is a wysiwyg field. nptaPosteriorExiste ia a Boolean field.

    When the record is created, the field notaPosterior is created empty.

    But then, if I update something in the record and save the record, the field notaPosteriorExiste takes the value 1, that means notaPosterior is not null.

    I see that the field display nothing, but if I look in detais in HTML I see "<p><br></p>"

    Might that be the reason for that behaviour? How can I ask if the field is empty?

    Thaks in advance

  • #2
    Hi,

    I have just tested on my local crm, the empty wysiwyg seems to has the value "" and not null

    I suggest you to change the formula to this:

    ifThenElse(notaPosterior == "",
    notaPosteriorExiste = 0,
    notaPosteriorExiste = 1);
    CEO of Eblasoft
    EspoCRM Expert since 2014
    Full Stack Web Developer since 2008
    Creator of Numerous Successful Extensions & Projects​

    Comment


    • #3
      Thank you

      Comment

      Working...
      X