cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

set a field with current user email/id when in edit mode

Hi All,
I'm using a responsive form and would like to set a field (a single line of tex) with the current user email value/id but it doesn't seem to work.
When i try (In New mode it works but not In Edit Mode).
Is this how it is suppose to work or what am i missing here...

See screenshot

Thanks in advance

ISEditMode.PNG

Labels: (1)
0 Kudos
Reply
5 Replies
Highlighted
Nintex Newbie

Re: set a field with current user email/id when in edit mode

Hi ,

You are not missing any it seems .

I think you might be checking the same in Preview > Preview settings > Edit Mode .

The value cannot fetch in Preview Edit mode .

Publish and check you will see the value when you edit the item .

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: set a field with current user email/id when in edit mode

Thanks for your response.

I have published it and opened it aspr normal

I can see the value in the edit mode not a problem and when i go to the list  and look at that record it hasn't saved.

Whe we use set,,is it also meant to save?

 

 

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: set a field with current user email/id when in edit mode

If a field value is set then it should also be saved to the list in the background as long as the field is connected to a column.

 

Would using the new responsive form designer be also an option for you? I think that setting values in the new responsive designer is more flexible and robust than the rules engine in the former responsive designer.

Reply
Highlighted
Community Manager Community Manager
Community Manager

Re: set a field with current user email/id when in edit mode

Hi @naijacoder

 

If you can use the New Responsive designer like @praios81 suggested here is how you can build your rule in that designer:

 

In this example I want to populate my email into the Text - Short 1 control only when the form is in edit mode.

Screen Shot 2020-04-28 at 6.43.08 AM.png

 

When you go into the Rules tab in the new designer you'll notice that you don't have all the same options immediately available in the drop down, just the controls on the form.

Screen Shot 2020-04-28 at 6.44.15 AM.png

 

You will want to select the 'Insert' option and that will give you all of the context properties that you will be looking for.

Screen Shot 2020-04-28 at 6.44.39 AM.png

Screen Shot 2020-04-28 at 6.45.00 AM.png

You will want to select 'Form mode' from the left menu, and then select the 'Is Edit mode' property.

 

With that selected you can then set the 'Is Yes' value for your rule.

Screen Shot 2020-04-28 at 6.45.35 AM.png

 

Next you'll then configure the value for the Text - Short 1 control to be the context email:

Screen Shot 2020-04-28 at 6.45.53 AM.png

Screen Shot 2020-04-28 at 6.46.04 AM.png

Screen Shot 2020-04-28 at 6.46.21 AM.png

 

When you Create the rule and then publish your form you should find that nothing is populated on New:

Screen Shot 2020-04-28 at 6.46.45 AM.png

 

But when you edit the form, your email address appears:

Screen Shot 2020-04-28 at 6.46.51 AM.png

Hope that helps!

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: set a field with current user email/id when in edit mode

Hi there,
Thanks  for the reply.

I'm using the Response Forms and not the New Responsive designer

I'm using the one below

https://community.nintex.com/t5/Nintex-for-Office-365/set-a-field-with-current-user-email-id-when-in...

 

Thanks and hope this helps

0 Kudos
Reply