Jump to content

oleooo

Registered Users - Approved
  • Posts

    30
  • Joined

Posts posted by oleooo

  1. Trying to split the phone number and email in a rule. I have created a if else statement so that if the email is missing the phone will center and if the phone is missing the email centers. I just can not get the last part to work. where generally in most programs if you hit tab shift it will equally split them.

    Is there a way to code this with a tag.

     

    here is the code I put together.

    if (Field("Phone") < 1) {

    return '<center>'+Field("Email")+'</center>';

    } else if (Field("Email") < 1 ) {

    return'<center>'+ Rule("phone format Rule1")+'</center>';

    } else {

    return '<p br=false quad=L>'+Field("Phone")+'<p br=false quad=R>'+Field("Email");

    }

     

    this is an example

     

    208-371-9041 Ole@DirectOrthocare.com

  2. I and trying to create a Rule that if text is present after the return it places a bullet point and if it is just a return then it is left blank but returned.

     

    if (Field("Bioandareaofinterest").indexOf("/<p>g/ textLines") > -1);

     

    return Field("Bioandareaofinterest").replace(/<p>/g, "<br>&bull< >");

     

    if (Field("Bioandareaofinterest").indexOf("/<p>g/") > -1);

     

    return Field("Bioandareaofinterest").replace(/<p>/g);

×
×
  • Create New...