Keyword replacement in custom form recipient email format to


(Gjboyd7) #1

is it possible to use a keyword in this field within a custom form?

 

For example:

 

Recipient Email Format To  %globals_asset_metadata_Course.Director.Email%

 

Then on the pages that form is nested, this metadata field could be populated with different recipients.

 

Is that possible, or maybe there is a better way to achieve this? Screen Shot 2016-05-11 at 14.06.41.png (49.6 KB)


(Nic Hubbard) #2

Have you tried it?

 

Also, be careful about nesting Custom Form assets.


(Gjboyd7) #3

Hi  
Yes, I have tried it now and it works ok.
 
Why should be careful about nesting forms, seems to make sense to nest a form, is it mainly around caching issues?


#4

is it mainly around caching issues?

  Yep, since version 5.something you get a warning message if you try it too.


 
https://www.squizlabs.com/squiz-matrix/matrix-performance-report-caching#nesting-form-asset-types goes into a bit more detail.


(Harinder Singh) #5

Nesting Custom forms into standard pages is not a best practice as they cause caching issues. You might get call from your customers or staff regarding their form submissions didn't go through. Sometimes, its very annoying as cant trace that missing submission.

 

Instead, you can apply Paint Layouts on Custom forms to solve your purpose.

 

In addition, I would recommend to explicitly disable the cache on Custom forms through Cache manager. It just an extra step to make sure that your form will never be cached. But above suggestions still required.


#6

agree about the cache manger and setting forms not to cache. You don’t want to risk content being viewed which can happen if you have nested forms :frowning: