Using macros in field definitions to assign alternative forms

Banjo Advertising asked on June 25, 2014 21:27

Hi,

I’m trying to add 2 fields using dropdown list control to a document type so that under the form tab, the user can assign a single bizform to the page, as well as assigning an optional alternative form.

I’ve managed to get the first field in by putting in the below to select a form name:

;Please choose a form
{%SiteObjects.Forms.DisplayNames#%}

What I’m having trouble with is creating the alternative form selector. I can use macros to get all alternative forms, but I need a way to filter that list so that it only applied to the chosen form in the previous field. I’ve already set the alternative form field to enable only if there is a value in the form field. Can this be achieved?

Correct Answer

Brenden Kehren answered on June 26, 2014 12:56

I'd suggest using a SQL query with that dropdown to achieve what you're looking for. You can pass in the value from the other field in a macro.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Banjo Advertising answered on June 26, 2014 18:50

Sounds like a viable solution. I'll give it a shot. Thanks.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.