ploneformgen

How can I generate a registration number in PloneFormGen, using a TALES Expression?

爱⌒轻易说出口 提交于 2019-12-12 14:21:39
问题 I am trying to set up a registration form for a conference using PloneFormGen, and I would like to use a TALES Expression to count the number of existing records, add "1", then display this on the "Thank You" page as the registrant's registration number. Is this possible? I have used the following to generate a random 6 digit number in the past to create a case number ID for a support request, where the number didn't matter other than to track the request, then it would be deleted once the

Master slave widget for PloneFormGen

旧城冷巷雨未停 提交于 2019-12-06 11:45:53
问题 Does there exist anything akin "Master Slave Widget" for PloneFormGen? Where the user choices first choice A which would generate the list of choices for choice B (below) to select? 回答1: This is a far less than ideal answer, but I've done this several times with JavaScript injected into the header with a PFG override. It's only practical for relatively simple decision trees. The basic procedure is to on-load hide all the subsidiary controls, then reveal them as click events indicate a

Master slave widget for PloneFormGen

懵懂的女人 提交于 2019-12-04 17:42:27
Does there exist anything akin "Master Slave Widget" for PloneFormGen? Where the user choices first choice A which would generate the list of choices for choice B (below) to select? This is a far less than ideal answer, but I've done this several times with JavaScript injected into the header with a PFG override. It's only practical for relatively simple decision trees. The basic procedure is to on-load hide all the subsidiary controls, then reveal them as click events indicate a controlling choice. Grouping subsidiary controls into fieldsets is also handy: then you may show and hide controls