Discussions

Expand all | Collapse all

Creating a warning message for missing informaiton

  • 1.  Creating a warning message for missing informaiton

    Posted 09-11-2018 11:19
    I have a field setup to warn people of missing information needed on a form. In this instance, it is a generic set of information. What I need to do now is write a warning message based on the company type (i.e. contractor, customer, vendor). Is there a way to add a Case to this and
     then nest the IF's under each Case.


    ">https://d2r1vs3d9006ap.cloudfront.net/s3_images/1751147/RackMultipart20180911-18746-rzgewb-Missing_Information_inline.jpg?1536664719">_


  • 2.  RE: Creating a warning message for missing informaiton

    Posted 09-11-2018 11:26
    Joey,

    Please pst your actual code copy and not pasted, not a screen shot. Can't read it and can�t edit it.


  • 3.  RE: Creating a warning message for missing informaiton

    Posted 09-11-2018 11:34
    Here you go!

    var text Warnings = List("<br>",

    If([BSS Vendor #]<>"","","BSS Vendor #"),
    If([Legal Contact - Full Name]<>"","","Legal Contact Name"),
    If([Legal Contact - Email]<>"","","Legal Contact Email"),
    If(ToText([Corporation Type])<>"","","Corporation Type"),
    If(ToText([Trade])<>"","","Trade Type"),
    If(ToText([Trade License # (Enter N/A if not applicable)])<>"","","Trade License#"),
    If([# COI]=0,"COI"),
    If([# MSA]=0,"DocuSigned MSA")
    );


    If($Warnings <>"", "<span style=\"color:red;font-size:110%; font-weight:bold\">Missing Information:<br>" & $Warnings)


    In essence, I want a different set of messages for the different company types!


  • 4.  RE: Creating a warning message for missing informaiton

    Posted 09-11-2018 14:09
    Do you want a different warning for each company, for each warning "type"?
    ...
    If([BSS Vendor #]<>"","",
    Case([Company],
    "ABC Food Service","ABC Food Service Vendor Number",
    "ABC Kitchen Construction","Construction Vendor #",
    "BSS Vendor #"),
    ....