In InfoPath I used to work with action rule to set field values. I started working with Nintex forms and I can only see Formatting and validation rules. is it a separate function in nintex. I am using trial version and I would think it is a full version and not standard.
is this feature available in nintex ?, if so can some one guide me ?
Regards
Kannan
Best answer by shaunlub
You can use the Calculated Value control, using the IF runtime function, so that when the tested condition is true, it could lookup the names as necessary; if false to remain blank. These calculated values would be Connected to columns (like you would promote fields in InfoPath out to SharePoint) - so they can be used by workflows when the form is closed.
What exactly are you trying to achieve? There are no action rules in Nintex Forms but I think there are probably alternative ways to implement the functionality you like to have ;-)
Are you saying, for example, "If field txtAnimal is equal to Horse, then set field txtAnimalClass to Mammal; if field txtAnimal is equal to Frog then set field txtAnimalClass to Amphibian"?
You can do this by creating a rule on the txtAnimalClass to say "if txtAnimal is Horse, then mammal".
I am sure there are other ways to do this, let me know if this is on the right path though.
Assuming txtanimal class is a field in the list , and in nintex forms there are two rules for a field formatting and validation. Which one should I chose ? I thought formatting is for formatting the text and validation is for validating the text ?
The most robust way of setting of field values is done by way of Javascript at the moment. There was word that some sort of 'rules' like mechanism would be introduced in the product that would allow for the 'automated' setting of fields but it has yet to be fully introduced.
That'll give you an idea of how to go about it, read the comments in that doc also as they have some examples. I'd recommend being familiar with Javascript first though otherwise it can be a bit much.
there's the possibility to use a "Calculated Value" control and use the runtime function "Lookup" to show values from a list based on another control in the form.
If I understand it correct the calculated Value control helps to show the existing values with some calculations. what I was looking for is setting values after some item is changed. For example if a request is rejected by HR I need to set the values of Line Manager and Director approval to reject.
Currently I am doing it via workflow using "Set field in current item" Action
You can use the Calculated Value control, using the IF runtime function, so that when the tested condition is true, it could lookup the names as necessary; if false to remain blank. These calculated values would be Connected to columns (like you would promote fields in InfoPath out to SharePoint) - so they can be used by workflows when the form is closed.
The only caveat with Calculated fields is that their values cannot be directly edited by the user (they rely on their underlying formula to set their values).