-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature-PRESIDECMS-2964_recording-where-a-formbuilder-f…
…orm-has-been-submitted-from' into release-10.28.0
- Loading branch information
Showing
7 changed files
with
63 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
system/handlers/renderers/content/FormBuilderSubmissionFormUrl.cfc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* @feature formbuilder | ||
*/ | ||
component { | ||
|
||
property name="formBuilderService" inject="SiteService"; | ||
property name="formBuilderService" inject="FormBuilderService"; | ||
|
||
private string function default( event, rc, prc, args={} ) { | ||
if ( !isEmptyString( args.data ?: "" ) ) { | ||
var submissionId = ( rc.submissionId ?: ( args.record.id ?: ( rc.id ?: "" ) ) ); | ||
|
||
var submission = formBuilderService.getSubmission( submissionId ); | ||
|
||
if ( !isEmptyString( submission.form_site ?: "" ) ) { | ||
|
||
var link = event.getSiteUrl( submission.form_site ) & args.data; | ||
|
||
return '<a href="#link#">#link#</a>'; | ||
} | ||
} | ||
|
||
return ""; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters