Make name tags dynamically in Sketch - sketch-3

So I'm creating a name tag for a conference where I have 250 participants.
Each name tag needs a different name, location, a specific color of a square and a question.
Is there any way I can program or a get an addon that does this for me, so I don't have to do it 250 times individually?

I do not know of a plugin that can do exactly what you want, but with the "sketch craft" plugin you can add a file in json format and give it a text value. And you can duplicate this text and automatically get it in other information. But it seems that the color value can not be assigned as the color value of an object in json format.

Related

OData value (color) applied to SAPUI5 table

I wanted to know if the following is possible:
I've got an oData which has two fields related with colors
Colors are set as RGB because I thought it would be easier to pick them up to use it as styles in frontend.
I have a table in which I want to assign these colors to a specific cell, depending on 'ORGNA'.
I would like the row to have background-color red where Especialidad="UROLOGIA" (for example), but that color must come from the OData values I've got stored(see first image).
'ORGNA' values are the ones shown as 'Especialidad' (which means that 39ONC would be shown as 'Oncologia' and so on in the table).
I also wanted to know if this is possible or they must be set specifically from a Styles.css file.
Maybe there's some property like setColor or is there any way to add a background-color tag inside my XML View passing that OData values?
If you need any additional code, please just let me know.

Change the font color in a field using lotus script or #command

Is there a way to change the font color and its background of a rich text field? The goal here is to get a type of color whenever a word is changed from a list.
For instance, I can have a table with two columns, where first column is related to a type of vehicle and the second it is related to type of combustible used. So, let's imagine that every time a vehicle uses gasoline, so its wording should be shown yellow text and the field background in black. On the other hand, if a vehicle uses electrical, its wording should be shown red and the field background in green...
I know that there is a command but I do not know how to use it for more than one value.
#Command([TextSetFontColor]; [Red])
Any help?
You can't change the font and color of the existing text in a rich text field with the Notes #formulas or #commands. There are some tricks you can do (e.g., multiple subforms containing the same field, with different backgrounds and fonts, and a computed subform formula, or maybe with multiple computed-for-display fields and hide-whens - but the text would not be editable that way) before the text is entered into the field. If you want to change the font of already-existing rich text, you'll probably need to use the Notes C or C++ APIs, the MIDAS Rich Text API from Genii software. I think the background will have to be done with computed subforms or hide-whens and computed-for-display fields (for non-editable rich text), no matter what.

How can I create a user defined value in Construct 2?

I want to be able to have the user type a number or use the slider bar to pick a value and have that value be stored as a global variable. How can I do that?
For getting input from the user, you can use the TextBox Object in Construct 2. If you put one in your layout, you can access it's current value in the Event Sheet at any time. You can use the On Text Changed (below) event and grab the current value by using the Text property (also below) and assign it to a Global Variable.
TextBox Manual
https://www.scirra.com/manual/117/textbox
On text changed
Triggered whenever the text in the field is modified, by typing, backspace/delete, cut/paste etc.
Text
Get a string containing the text currently entered in to the field.
Check out this little tutorial video on variables in connect 2 http://blogs.msdn.com/b/gamewords777/archive/2015/07/20/10-minutes-with-construct-2-global-and-instance-variables.aspx
Also note - instance variables are handled differently than global.

Gravity forms - merging values

Need some help with Gravity forms. I need to have a field, that is a merge of values ,that user has previously selected.
So, if a user has selected 3 different fields wth values of 1)XYY, 2)YYX,3)YYZ I do not need a sum, just a plain merge, in form of XYY.YYX.YYZ, or anything like that.
Could that be acomplised with some merging tags, or dynamically population?
Thanks
Of course;
You should create two different forms.
Collect data with field1-field2-field3, they can be single line text, number, date or anything. In the advanced tab of field settings, write a parameter name for each one, like field1-field2-field3.
In the second form create a single line text, in the advanced tab of field settings check "dynamically populate field" and write your parameters like field1.field2.field3.
In form1 settings->confirmations->redirect URL line, write your form2 page url where you added form2. Select "Pass field data via query string" and add your parameters like field1={fieldname:1}&field2={fieldname:2}&field3={fieldname:3}
When you submit form1, your form2->single line text field will capture the parameters as you wish.
This is possible with Gravity Forms Populate Anything by...
Add whatever type of field you'd like to use to capture the combined.
Set the Default Value to the merge tags of your 3 fields: #{Field A:1}.#{Field B:2}.#{Field C:3}.
That's it.
Edit: Updated screenshot for Gravity Forms 2.5 and updated merge tags to use the # to make them "live".

Format lookup column to display Name (FileLeafRef)

I have a custom publishing page layout I have created. The content type behind the page layout has a lookup column pointing to a document library where I store images. Basically, the pages I am creating from the layout are 'articles' and I have an associated image with each.
As you can probably guess by now, I want to display the lookup image on the page. However, I cannot for the life of me figure out how to do this. I have been inserting columns into the page layout via controls, but I'm not sure how to format it to look at the source document behind the lookup column. I am wondering if it is possible somehow through controls, and if not this way, if it can be done through modifying the XSL of a webpart. My last option which I don't want to use but I know it would work is a workflow (on new item creation, copy Name (FileLeafRef) into a hidden single line text field I coult utilize).
Does anyone know how to format a lookup column to display Name (FileLeafRef)?
Help is greatly appreciated!
-Josh

Resources