Skip to main content

I have an issue with deleting specific text from a hidden Data Label I use to combine workflow actions for email notifications. For example, I have a hidden Data Label (hdnViewNotifications) for each view on my form that combines all of the notifications that might be triggered on that View any time the form is filled out. To add a notification's name to the hdnViewNotifications control I use the Transfer Data and add the hdnViewNotification control and that specific notification's name with a comma after the activity, so that the hdnViewNotification combines all of the View's notifications in that single control (see attachment). Then when the form is saved a rule pulls each View's hdnViewNotification control to add all of the appropriate notifications to the workflow.

 

Sometimes users change a control so it adds the notification's name to the hdnViewNotifications and then reset the control. If a control that triggers a notification is reset, I would like to remove that specific notification's name from the hdnViewNotifications. Can anyone direct me on how to "clear" a specific notification name from the hdnViewNotifications control without clearing any other notification names that might have also been added to the control? Do I have to repopulate the hidden control with an expression created to remove the specific notification's name? If so, any pointers on how to build the expression would be greatly appreciated as I'm not very comfortable with expressions.

Dear ,

 

If i understood u right , u want a way to clear last notification name if a SPECIFIC control is changed , u want to reset the hdn field and remove the notification name user added recently without affecting if there is data from previous notifications .

 

ill share my thoughts about this with u .

using expression on the view/form , the expression has to be something like this .

since i understood that u have the value u just added to the hdn field . so u can reuse it in an expression .

simple scenario is like this ..

hdn field = a,b,c,d

u opened the form with these values inside it , ur control is changed and u have transfered the new value to it which is "e"

hdn field = a,b,c,d,e

 

when u want to reset the field , create new expression with convenient name like "removingLastExpressionValue"

(Replace chdnfield] , the value which is ",e"] , EmptyString]) , the hdn field u got it on ur view/form , the value which u already know and the empty string from Text folder on right pane of expressions tab

and use this expression when u want to reset the value by using transfer value . transfer the expression to the hdn field .

hdnfield = a,b,c,d --> add e --> hdnfield= a,b,c,d,e -->reset ---> a,b,c,d,e

 

might be a bit long of explaination but hope it helps .

let me know if i understood u wrong and hoping to help further more if needed.

 

Regards.

 


Reply