Zum Hauptinhalt gehen

Logic for Display Form 'Submit' button cannot be blank...

Kommentare

3 Kommentare

  • Permanently deleted user
    Hi Lisa,

     

    You can try 

     

    (buttonResultPhoto = "submit") andalso (Not outphoto Is Nothing)

     

    If it doesn't work as expected please post error that "condition" is highlighting

     

    I hope this helps
    0
  • Permanently deleted user
    So this ended up working...

     

    _img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=907f2000000fy53&feoid=Body&refid=0EMf2000000kAC4" _/_img_

     

    If the user selects the 'Skip' button (the first flow decision), it just skips the Photo Sequence and the workflow finishes. If the user selects the 'Submit' button AND the outphoto.count >0, then it proceeds to the photo sequence. If the user selects 'Submit' but never actually added a photo, they are redirected to the display form to prompt them to add a photo again. After extensive testing, I THINK this is working how we want it...

     

    Thank you for your suggestion Fracesca. If I found out this isn't actually working how I expect then I will give your logic a try :)

     

     
    0
  • John Nerge
    Maybe I'm not understanding the specific workflow logic, but wouldn't it be more direct to make the FilePicker a required field in your Display Form (i.e. add a required field validation to it)?

     

    That way if they click Submit without choosing a photo they'll get a red error message within the form that says they have to upload a photo before continuing. You just have to make sure the Submit button has Cause Validation checked.

     

    And if you want to have a Skip button too, then you can just leave the Cause Validation checkbox unchecked for that button (with it still checked for the Submit button).
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.