Our customer have some forms with several step in it(wizard).
let say 1 forms has 7 steps.
its possible that step 4 is completed before step 3.
each step have its status field, let say for example
fd.field('Conflit_Etape1')
fd.field('Conflit_Etape2')
fd.field('Conflit_Etape3')
fd.field('Conflit_Etape4')
fd.field('Conflit_Etape5')
fd.field('Conflit_Etape6')
fd.field('Conflit_Etape7')
i there a way to change the text, change the color or the shape of the wizrd step that is completed without affecting the other?
i would like to implement a if logic in javascript like(not actual javascript in example):
if fd.field('Conflit_Etape2') ='completed' then the step number 2 in the wizrd get its text, color or shape updated.
if fd.field('Conflit_Etape4') ='completed' then the step number 4 in the wizrd get its text, color or shape updated.
Unfortunately, changing the color of a select step in a Wizard control is not supported; you can only change the color of all steps at the same time:
fd.container('Wizard1').step[stepIndex].color = '#00FF00'; // this will produce an error
fd.container('Container1').step = {color : '#00FF00'}; // use this instead to change the color of all steps at the same time
Other than that, the code seems solid! Please share a screenshot of the browser's console (F12) if it doesn't work as expected.
Thanks for the reply,
color aside, i was under the impression that it was possible to change the icon of a completed step, let say with a checkmark icon.
To implement this approach, please add the changeIcon() function to your code and use changeIcon(fd.container('Wizard1'), stepIndex, 'BoxCheckmarkSolid'); instead of fd.container('Wizard1').icons[stepIndex] = 'BoxCheckmarkSolid';.