Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Set default value to field of custom document type. View modes: 
User avatar
Member
Member
poplooukhin-gmail - 4/7/2014 12:38:18 AM
   
Set default value to field of custom document type.
Hi, All

I created custom type of document.
I use form and alternative form for document type.
I want to set default value for one field using selected value of dropdownlist for another field.

How can I do it?

I tryed to use Context Macro Expressions, but I didn't get any result

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 4/7/2014 2:49:52 PM
   
RE:Set default value to field of custom document type.
What was the macro you were using? And where were you placing it?

User avatar
Member
Member
poplooukhin-gmail - 4/11/2014 1:00:02 PM
   
RE:Set default value to field of custom document type.
I tryed to use Context.CurrentDocument

But this approach is not good for me, because CurrentDocument contains parent document.

I want to get information about selected value in dropdown list and fill fields in the form, but I didn't get success. I tried to fill form using event AfterDataLoad of CMSForm in the ContributionList web part