You are viewing limited content. For full access, please sign in.

Question

Question

Ways to Split form pages in Business Process in LF Cloud

asked two days ago

I have a scenario to email the form's first page to the email provided in the form. 

LF (Form contains 2 pages) -> route to email service task (email will contain only the first page of the form) any thoughts on how to split the form's pages? 

 

0 0

Replies

replied two days ago

You can add a Field Rule to hide Page 2 when the Step Name is not the name of your starting step (and not any assigned tasks /archives that may exist between). This way when it reaches the Email Activity the second page will be hidden.

2 0
replied two days ago Show version history

I see an option in the field rule to hide page 2 but not the step name populates in the condition section 

0 0
replied two days ago

Oh this is the Classic Designer. You have to transfer the current step into a field so you can reference it as a field value.

Add an HTML field and put the following syntax

{/dataset/_current_step_name}

Give it a class name of "step"

Create a Single Line with a name of Step and class name of stepOutput

Then add the following JS

$(document).ready(function(){
   let step = $('.step').text();
   $('.stepOutput input').val(step).change();
});


Now create a rule to show Page 2 when Step is Start or whatever your starting object name might be if changed from default.

If you switch to the modern designer you can reference the step directly in the rules, but you lose many code features. I usually recommend the Classic for coders and the Modern for non-coders.

1 0
replied two days ago

thank you, I will try this out.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.